Skip to content

Commit

Permalink
build: Update actions due to Node.js 16 deprecation (#521)
Browse files Browse the repository at this point in the history
* Node.js 16 actions are deprecated
* actions/checkout, coursier/cache-action, coursier/setup-action
* using same versions as in akka-projection
  • Loading branch information
patriknw authored Feb 9, 2024
1 parent 1777fc1 commit 974428d
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 41 deletions.
92 changes: 69 additions & 23 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
Expand All @@ -32,7 +34,9 @@ jobs:
uses: coursier/[email protected]

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -47,7 +51,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -58,10 +64,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -81,7 +91,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -92,10 +104,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -118,7 +134,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -129,10 +147,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -153,7 +175,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -164,10 +188,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -189,7 +217,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -200,10 +230,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -218,7 +252,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -228,10 +264,14 @@ jobs:
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand All @@ -250,7 +290,9 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

Expand All @@ -261,10 +303,14 @@ jobs:
git checkout scratch
- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0

Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ jobs:
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 17
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.17

Expand Down
38 changes: 28 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@ jobs:
- { scalaVersion: "2.13", jdkVersion: "1.21.0", jvmName: "temurin:1.21", extraOpts: '', testCmd: "test"}
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK ${{ matrix.jdkVersion }}
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: ${{ matrix.jvmName }}

Expand Down Expand Up @@ -76,15 +82,21 @@ jobs:
- { scalaVersion: "3.3", jdkVersion: "1.17.0", jvmName: "temurin:1.17.0", extraOpts: '', testCmd: "core/test"}
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK ${{ matrix.jdkVersion }}
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: ${{ matrix.jvmName }}

Expand Down Expand Up @@ -130,15 +142,21 @@ jobs:
- { scalaVersion: "2.13", jdkVersion: "1.21.0", jvmName: "temurin:1.21", extraOpts: '', testCmd: "test"}
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK ${{ matrix.jdkVersion }}
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: ${{ matrix.jvmName }}

Expand All @@ -161,4 +179,4 @@ jobs:
from: AP R2DBC CI
body: |
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
20 changes: 15 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,22 @@ jobs:
if: github.event.repository.fork == false
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]
# https://github.com/coursier/cache-action/releases
# v6.4.4
uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11.0.17

Expand All @@ -44,13 +50,17 @@ jobs:
if: github.event.repository.fork == false
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: coursier/[email protected]
# https://github.com/coursier/setup-action/releases
# v1.3.4
uses: coursier/setup-action@48280172a2c999022e42527711d6b28e4945e6f0
with:
jvm: temurin:1.11

Expand Down

0 comments on commit 974428d

Please sign in to comment.