GitHub Action javítása #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JMeter Tests | |
on: [push, pull_request] | |
jobs: | |
jmeter-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 22 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 22 | |
distribution: 'zulu' # Alternative distribution options are available. | |
- name: Install JMeter | |
run: sudo apt-get update && sudo apt-get install -y jmeter | |
- name: Run JMeter tests | |
run: | | |
jmeter -n -t non-functional-test/terheleses_teszt.jmx -l non-functional-test/Eredmenyek/results.jtl | |
- name: Check JMeter results | |
run: | | |
cat non-functional-test/Eredmenyek/results.jtl | |
- name: Generate JMeter HTML report | |
run: jmeter -g non-functional-test/Eredmenyek/results.jtl -o non-functional-test/Report | |
- name: Upload JMeter results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jmeter-results | |
path: non-functional-test/Eredmenyek/results.jtl | |
- name: Upload JMeter HTML report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jmeter-html-report | |
path: non-functional-test/Report |