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"