From 088ab64ec40a17cb4870c3dabfab3cd0a430130c Mon Sep 17 00:00:00 2001 From: lolodawit Date: Wed, 9 Sep 2026 21:34:05 -0700 Subject: [PATCH] Update the workflow actions Every action was a major version or more behind, and the release run warned that four of them target Node 20, which is deprecated and being forced onto Node 24. checkout 4 to 7, setup-node 4 to 7, upload-artifact 4 to 7, setup-java 4 to 6, setup-gradle 4 to 6, configure-pages 5 to 6, upload-pages-artifact 3 to 5, deploy-pages 4 to 5. Each is pinned to the current latest major rather than to the lowest version that clears the warning, so the same deprecation does not come round again next quarter. --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/pages.yml | 10 +++++----- .github/workflows/release.yml | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0636ae..15666e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,21 +16,21 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v6 with: distribution: temurin java-version: '21' - - uses: gradle/actions/setup-gradle@v4 + - uses: gradle/actions/setup-gradle@v6 # No display is needed: the engine and the tree layout hold no JavaFX # reference, and nothing here starts the toolkit. - run: ./gradlew test --no-daemon - if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: test-report path: build/reports/tests/test @@ -38,9 +38,9 @@ jobs: web: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: '22' cache: npm diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 124f814..5d4d441 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,9 +30,9 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: '22' cache: npm @@ -49,13 +49,13 @@ jobs: # enablement: true switches Pages to build from this workflow, which is # the setting that would otherwise have to be changed in the UI. - - uses: actions/configure-pages@v5 + - uses: actions/configure-pages@v6 with: enablement: true - - uses: actions/upload-pages-artifact@v3 + - uses: actions/upload-pages-artifact@v5 with: path: docs - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db434fb..32d0f58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: # Tags and full history: the next version comes from the last tag, # and the notes come from the commits since it. @@ -36,14 +36,14 @@ jobs: echo "::error::Releases are cut from main, not ${{ github.ref_name }}." exit 1 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v6 with: distribution: temurin java-version: '21' - - uses: gradle/actions/setup-gradle@v4 + - uses: gradle/actions/setup-gradle@v6 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: '22' cache: npm