From 7e0dc50de5e8318ad092a1b7a3a1130326167bb5 Mon Sep 17 00:00:00 2001 From: Michael Dombrowski Date: Thu, 4 Apr 2024 13:50:59 -0400 Subject: [PATCH] ci: upgrade github actions (#431) --- .github/workflows/benchmark.yml | 10 ++++++---- .github/workflows/maven.yml | 17 ++++++++++------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c6aa239e6..f123135e4 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -8,18 +8,20 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: corretto + java-version: 8 + cache: maven - name: Run Benchmarks run: ./run-benchmarks.sh working-directory: ./benchmark - name: Upload Results - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 with: name: Benchmark Results path: ./benchmark/jmh-result.json diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index db4aa825b..4210ff2f9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,15 +14,17 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v4 + - uses: wagoid/commitlint-github-action@v6 if: matrix.os == 'ubuntu-latest' - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: corretto + java-version: 8 + cache: maven - name: Build with Maven (not Windows) env: AWS_REGION: us-west-2 @@ -35,13 +37,13 @@ jobs: shell: cmd if: matrix.os == 'windows-latest' - name: Upload Failed Test Report - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 if: failure() with: name: Failed Test Report path: target/surefire-reports - name: Upload Coverage - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 if: matrix.os == 'ubuntu-latest' with: name: Coverage Report ${{ matrix.os }} @@ -51,7 +53,7 @@ jobs: if: matrix.os == 'ubuntu-latest' - name: cobertura-report-unit-test if: matrix.os == 'ubuntu-latest' - uses: shaguptashaikh/cobertura-action@master + uses: 5monkeys/cobertura-action@v14 continue-on-error: true with: # The GITHUB_TOKEN for this repo @@ -70,3 +72,4 @@ jobs: show_class_names: true # Use a unique name for the report and comment report_name: Code Coverage Report + only_changed_files: true