mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
jmeter again
This commit is contained in:
parent
84c3e927e6
commit
2547e0543a
1 changed files with 37 additions and 21 deletions
60
.github/workflows/run-jmeter-test.yml
vendored
60
.github/workflows/run-jmeter-test.yml
vendored
|
@ -1,28 +1,44 @@
|
||||||
name: Test JMeter Action
|
name: Test Action
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
action_build:
|
test-action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Setup Jmeter
|
||||||
|
uses: tush-tr/setup-jmeter@v1.1.0
|
||||||
|
- name: Run Jmeter
|
||||||
|
run: jmeter -n -t src/test/jmeter/petclinic_test_plan.jmx -l reports/results.jtl
|
||||||
|
|
||||||
- name: Run JMeter Action on a test
|
|
||||||
uses: kzhou57/apache-jmeter-action@v0.8.3
|
|
||||||
with:
|
|
||||||
testFilePath: src/test/jmeter/petclinic_test_plan.jmx
|
|
||||||
outputReportsFolder: reports/
|
|
||||||
args: "--loglevel INFO"
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: jmeter-test-results
|
|
||||||
path: reports/
|
#name: Test JMeter Action
|
||||||
|
|
||||||
|
#on:
|
||||||
|
# push:
|
||||||
|
# branches: [ main ]
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ main ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#jobs:
|
||||||
|
# action_build:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# - name: Run JMeter Action on a test
|
||||||
|
# uses: kzhou57/apache-jmeter-action@v0.8.3
|
||||||
|
# with:
|
||||||
|
# testFilePath: src/test/jmeter/petclinic_test_plan.jmx
|
||||||
|
# outputReportsFolder: reports/
|
||||||
|
# args: "--loglevel INFO"
|
||||||
|
|
||||||
|
# - uses: actions/upload-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: jmeter-test-results
|
||||||
|
# path: reports/
|
||||||
|
|
Loading…
Reference in a new issue