jmeter testing

This commit is contained in:
Rodolphe Fontaine 2024-10-17 21:34:38 +02:00
parent cb88dd9a7e
commit bc9c45d3ce

View file

@ -48,7 +48,7 @@ jobs:
Build_and_push: Build_Container_and_push_to_Artifactory:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: Run_test needs: Run_test
steps: steps:
@ -114,4 +114,38 @@ jobs:
# Insert to oidc-provider-name the 'Provider Name' defined in the OIDC integration configured in the JPD # Insert to oidc-provider-name the 'Provider Name' defined in the OIDC integration configured in the JPD
# with: # with:
# oidc-provider-name: "" # oidc-provider-name: ""
#JF_PATH_EXCLUSIONS: "*gradle*" #JF_PATH_EXCLUSIONS: "*gradle*"
test-action:
runs-on: ubuntu-latest
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: Login to Jfrog Artifactory
uses: docker/login-action@v3
with:
registry: rodi26.jfrog.io
username: 'rodolphe.fontaine@orange.fr'
password: ${{ secrets.JF_ACCESS_TOKEN }}
- name: Set Up Docker
uses: docker-practice/actions-setup-docker@master
- name: Docker Run
run: docker run -d -p 8080:8080 rodi26.jfrog.io/rodi26-docker/spring-petclinic:latest
- 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"