diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index ce4819a71..617d42e63 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -48,7 +48,7 @@ jobs: - Build_and_push: + Build_Container_and_push_to_Artifactory: runs-on: ubuntu-latest needs: Run_test steps: @@ -114,4 +114,38 @@ jobs: # Insert to oidc-provider-name the 'Provider Name' defined in the OIDC integration configured in the JPD # with: # oidc-provider-name: "" - #JF_PATH_EXCLUSIONS: "*gradle*" \ No newline at end of file + #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" \ No newline at end of file