From 1640232e5d2079987e5168b739f3e29d716e0cb7 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Fri, 5 Apr 2024 10:09:49 -0400 Subject: [PATCH] ci: update actions versions to avoid Node 16 warnings (#340) * ci: update actions/cache to version 4 * ci: update actions/setup-java to version 4 * ci: update actions/upload-artifact to version 4 * ci: update codecov/codecov-action to version 4 * ci: update actions/setup-python to version 5 * ci: update github pages actions --- .github/workflows/graalvm.yml | 2 +- .github/workflows/maven.yml | 10 +++++----- .github/workflows/publish-docs.yml | 10 +++++----- .github/workflows/validate-docs.yml | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/graalvm.yml b/.github/workflows/graalvm.yml index dece32d6..5ecc8bee 100644 --- a/.github/workflows/graalvm.yml +++ b/.github/workflows/graalvm.yml @@ -35,7 +35,7 @@ jobs: # Adapted from https://github.com/actions/cache/blob/v3/examples.md#java---gradle - name: Cache local Gradle id: gradleCache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.gradle/caches diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0bf70a00..ac5e7555 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java_version }} - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java_version }} distribution: 'temurin' @@ -34,7 +34,7 @@ jobs: # Adapted from https://github.com/actions/cache/blob/v3/examples.md#java---gradle - name: Cache local Gradle id: gradleCache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.gradle/caches @@ -58,7 +58,7 @@ jobs: run: cd test/gradle-test-wrapper && ./gradlew --stop - name: Store Gradle plugin test reports if: failure() && steps.gradlePluginTests.outcome == 'failure' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: failing-test-report path: test/gradle-test-wrapper/build/reports/tests/test/**/* @@ -84,7 +84,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: 'temurin' @@ -95,7 +95,7 @@ jobs: - name: Build with Maven run: ./mvnw verify --file pom.xml -Pcoverage - name: Upload coverage report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: file: ./test/jte-test-report/target/site/jacoco-aggregate/jacoco.xml fail_ci_if_error: true diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 38a552be..cce76645 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -28,11 +28,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # all history for all branches and tags - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache @@ -45,9 +45,9 @@ jobs: # find the static assets. run: mkdocs build --site-dir _site - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 deploy: environment: @@ -58,4 +58,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/validate-docs.yml b/.github/workflows/validate-docs.yml index 0ae3694e..1c8c82a9 100644 --- a/.github/workflows/validate-docs.yml +++ b/.github/workflows/validate-docs.yml @@ -23,7 +23,7 @@ jobs: with: python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache