mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
add Jmeter to build
This commit is contained in:
parent
aff4e6ae0c
commit
7d5d7952b8
1 changed files with 22 additions and 1 deletions
23
.github/workflows/maven-build.yml
vendored
23
.github/workflows/maven-build.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
|||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
test:
|
||||
Run test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
|
@ -45,3 +45,24 @@ jobs:
|
|||
distribution: 'temurin'
|
||||
- name: Run Tests
|
||||
run: ./mvnw -B test
|
||||
|
||||
Run Jmeter test plan:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Run test
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ '21' ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK ${{matrix.java}}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: ${{matrix.java}}
|
||||
distribution: 'adopt'
|
||||
cache: maven
|
||||
- name: Run JMeter Action on a test
|
||||
uses: rbhadti94/apache-jmeter-action@v0.5.0
|
||||
with:
|
||||
testFilePath: src/test/jmeter/petclinic_test_plan.jmx
|
||||
outputReportsFolder: reports/
|
||||
args: "--loglevel INFO"
|
Loading…
Reference in a new issue