diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7d00e75..7c12c4e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,17 +6,12 @@ jobs: build_and_test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 - - name: Cache the Maven packages to speed up build - uses: actions/cache@v1 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Execute tests and compute coverage run: mvn clean test - name: Generate coverage report @@ -25,10 +20,11 @@ jobs: runs-on: ubuntu-latest needs: [build_and_test] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: java-version: 11 + cache: 'maven' - run: mvn -B package --file pom.xml -DskipTests - run: mkdir staging && cp **/target/*jar-with-dependencies.jar staging - uses: actions/upload-artifact@v1