From edb1d9409b6b41cb7390286312bf35a1096bb36e Mon Sep 17 00:00:00 2001 From: Rodolphe Fontaine <30529563+Rodi26@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:33:10 +0200 Subject: [PATCH] add rematif path --- .github/workflows/maven-test.yml | 29 +++++++++++++++++++++++++++ .github/workflows/run-jmeter-test.yml | 11 ++++------ 2 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/maven-test.yml diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml new file mode 100644 index 000000000..8e04aa295 --- /dev/null +++ b/.github/workflows/maven-test.yml @@ -0,0 +1,29 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '17' ] + + 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: TEST with Maven Wrapper + run: ./mvnw -B test diff --git a/.github/workflows/run-jmeter-test.yml b/.github/workflows/run-jmeter-test.yml index 3f6c9b4fe..6310a1b80 100644 --- a/.github/workflows/run-jmeter-test.yml +++ b/.github/workflows/run-jmeter-test.yml @@ -3,14 +3,11 @@ name: Test JMeter Action on: push: branches: [ main ] - paths: - - 'test/**' - - 'src/test/**' pull_request: branches: [ main ] - paths: - - 'test/**' - - 'src/test/**' + + + jobs: @@ -22,7 +19,7 @@ jobs: - name: Run JMeter Action on a test uses: rbhadti94/apache-jmeter-action@v0.7.0 with: - testFilePath: src/test/jmeter/petclinic_test_plan.jmx + testFilePath: ../../src/test/jmeter/petclinic_test_plan.jmx outputReportsFolder: reports/ args: "--loglevel INFO"