Skip to content

Commit 13978b9

Browse files
civilizeddevclaude
andauthored
Upgrade GitHub Actions to resolve Node.js 20 deprecation warnings (#179)
* Upgrade GitHub Actions to resolve Node.js 20 deprecation warnings - actions/checkout v4 → v6 - olafurpg/setup-scala v10 → v14 - coursier/cache-action v6 → v8 - actions/checkout@master → v6 in vuepress-deploy.yml Closes #178 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Migrate olafurpg/setup-scala to coursier/setup-action olafurpg/setup-scala is deprecated and stuck on Node.js 16. Replace with coursier/setup-action@v2, its recommended successor. Input changes: - java-version: openjdk@1.17 → jvm: adoptium:17 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add sbt to coursier/setup-action apps coursier/setup-action only installs sbtn by default, not sbt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Upgrade coursier/setup-action v2 → v3 (Node.js 24) v3.0.0 upgrades the Node.js runtime from 20 to 24. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dbbd592 commit 13978b9

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
fail-fast: false
1616
steps:
1717
- name: Checkout current branch
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121
- name: Setup Scala and Java
22-
uses: olafurpg/setup-scala@v10
22+
uses: coursier/setup-action@v3
23+
with:
24+
apps: sbt
2325
- name: Cache scala dependencies
24-
uses: coursier/cache-action@v6
26+
uses: coursier/cache-action@v8
2527
- name: Lint code
2628
run: sbt check
2729

@@ -30,19 +32,20 @@ jobs:
3032
strategy:
3133
fail-fast: false
3234
matrix:
33-
java: ['openjdk@1.17']
35+
java: ['adoptium:17']
3436
scala: ['2.12.21', '2.13.18', '3.3.7']
3537
steps:
3638
- name: Checkout current branch
37-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
3840
with:
3941
fetch-depth: 0
4042
- name: Setup Scala and Java
41-
uses: olafurpg/setup-scala@v10
43+
uses: coursier/setup-action@v3
4244
with:
43-
java-version: ${{ matrix.java }}
45+
jvm: ${{ matrix.java }}
46+
apps: sbt
4447
- name: Cache scala dependencies
45-
uses: coursier/cache-action@v6
48+
uses: coursier/cache-action@v8
4649
- name: Run tests
4750
run: sbt ++${{ matrix.scala }}! test
4851

@@ -52,15 +55,16 @@ jobs:
5255
if: github.event_name != 'pull_request'
5356
steps:
5457
- name: Checkout current branch
55-
uses: actions/checkout@v4
58+
uses: actions/checkout@v6
5659
with:
5760
fetch-depth: 0
5861
- name: Setup Scala and Java
59-
uses: olafurpg/setup-scala@v10
62+
uses: coursier/setup-action@v3
6063
with:
61-
java-version: openjdk@1.17
64+
jvm: adoptium:17
65+
apps: sbt
6266
- name: Cache scala dependencies
63-
uses: coursier/cache-action@v6
67+
uses: coursier/cache-action@v8
6468
- name: Release artifacts
6569
run: sbt ci-release
6670
env:

.github/workflows/vuepress-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@master
12+
uses: actions/checkout@v6
1313

1414
- name: vuepress-deploy
1515
uses: IT4Change/vuepress-build-and-deploy@master

0 commit comments

Comments
 (0)