diff --git a/.github/workflows/run_unit_tests.yaml b/.github/workflows/run_unit_tests.yaml index eabebaf..6408f34 100644 --- a/.github/workflows/run_unit_tests.yaml +++ b/.github/workflows/run_unit_tests.yaml @@ -1,10 +1,17 @@ -name: Run Unit Tests +<<<<<<< HEAD +# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven -run-name: ${{ github.actor {} is making a pull request +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: run-unit-tests on: pull_request: - branches: [ main ] + branches: [ "main" ] jobs: build: @@ -12,26 +19,22 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Set up JDK 1.17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'adopt' - - - name: Build - run: mvn --batch-mode -DskipTests package - - - name: Test - run: mvn --batch-mode -Dmaven.test.failure.ignore=true test - - - name: Report - uses: dorny/test-reporter@v1 - if: always() - with: - name: Maven Tests - path: target/surefire-reports/*.xml - reporter: java-junit - fail-on-error: true + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.8.2 + + - name: Build with Maven + run: mvn -B -DskipTests package --file pom.xml + + - name: Test + run: mvn -B -Dmaven.test.failure.ignore=true test +