update peaceiris/actions-gh-pages@v4 #5
This file contains hidden or 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: Run JMeter Tests and Deploy Report | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
jmeter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Java (Required by JMeter) | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Download Apache JMeter | |
run: | | |
curl -L https://downloads.apache.org/jmeter/binaries/apache-jmeter-5.6.3.tgz -o jmeter.tgz | |
tar -xzf jmeter.tgz | |
echo "$GITHUB_WORKSPACE/apache-jmeter-5.6.3/bin" >> $GITHUB_PATH | |
- name: Run JMeter Tests | |
run: | | |
mkdir results | |
jmeter -n -t ./test-reqres-crud.jmx -l results/results.jtl -e -o results/report | |
- name: Upload HTML Report as Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jmeter-html-report | |
path: results/report | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./results/report |