Skip to content

Commit 6843cf6

Browse files
salmanmkcedgurgel
andauthored
chore: upgrade GitHub Actions for Node 24 compatibility (#1678)
* Upgrade GitHub Actions for Node 24 compatibility Signed-off-by: Salman Muin Kayser Chishti <[email protected]> * fix: configure workflows to run when they themselves are changed --------- Signed-off-by: Salman Muin Kayser Chishti <[email protected]> Co-authored-by: Eduardo Gurgel Pinho <[email protected]>
1 parent cc1143e commit 6843cf6

File tree

9 files changed

+22
-16
lines changed

9 files changed

+22
-16
lines changed

.github/workflows/beacon_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
paths:
99
- "beacon/**"
10+
- ".github/workflows/beacon_tests.yml"
1011

1112
push:
1213
branches:
@@ -25,7 +26,7 @@ jobs:
2526
runs-on: ubuntu-latest
2627

2728
steps:
28-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v6
2930
- name: Setup elixir
3031
id: beam
3132
uses: erlef/setup-beam@v1

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Set up Docker Buildx
1717
uses: docker/setup-buildx-action@v3

.github/workflows/integration_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- "Dockerfile"
1313
- "run.sh"
1414
- "docker-compose.test.yml"
15+
- ".github/workflows/integration_tests.yml"
1516

1617
push:
1718
branches:
@@ -27,7 +28,7 @@ jobs:
2728
runs-on: blacksmith-8vcpu-ubuntu-2404
2829

2930
steps:
30-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v6
3132
- name: Run integration test
3233
run: docker compose -f docker-compose.tests.yml up --abort-on-container-exit --exit-code-from test-runner
3334

.github/workflows/lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- "mix.exs"
1212
- "Dockerfile"
1313
- "run.sh"
14+
- ".github/workflows/lint.yml"
1415

1516
push:
1617
branches:
@@ -26,15 +27,15 @@ jobs:
2627
runs-on: blacksmith-4vcpu-ubuntu-2404
2728

2829
steps:
29-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v6
3031
- name: Setup elixir
3132
id: beam
3233
uses: erlef/setup-beam@v1
3334
with:
3435
otp-version: 27.x # Define the OTP version [required]
3536
elixir-version: 1.18.x # Define the elixir version [required]
3637
- name: Cache Mix
37-
uses: actions/cache@v4
38+
uses: actions/cache@v5
3839
with:
3940
path: |
4041
deps
@@ -64,7 +65,7 @@ jobs:
6465
- name: Run sobelow
6566
run: mix sobelow --config .sobelow-conf
6667
- name: Retrieve PLT Cache
67-
uses: actions/cache@v4
68+
uses: actions/cache@v5
6869
id: plt-cache
6970
with:
7071
path: priv/plts

.github/workflows/manual_prod_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
outputs:
4949
image_digest: ${{ steps.build.outputs.digest }}
5050
steps:
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v6
5252

5353
- id: meta
5454
uses: docker/metadata-action@v4

.github/workflows/prod_build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- "mix.exs"
1313
- "Dockerfile"
1414
- "run.sh"
15+
- ".github/workflows/prod_build.yml"
1516

1617
jobs:
1718
release:
@@ -20,7 +21,7 @@ jobs:
2021
published: ${{ steps.semantic.outputs.new_release_published }}
2122
version: ${{ steps.semantic.outputs.new_release_version }}
2223
steps:
23-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v6
2425
- id: semantic
2526
uses: cycjimmy/semantic-release-action@v3
2627
with:
@@ -72,7 +73,7 @@ jobs:
7273
outputs:
7374
image_digest: ${{ steps.build.outputs.digest }}
7475
steps:
75-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@v6
7677

7778
- id: meta
7879
uses: docker/metadata-action@v4
@@ -159,7 +160,7 @@ jobs:
159160
runs-on: blacksmith-4vcpu-ubuntu-2404
160161
steps:
161162
- name: Checkout branch
162-
uses: actions/checkout@v2
163+
uses: actions/checkout@v6
163164
with:
164165
ref: refs/heads/main
165166

.github/workflows/prod_linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: blacksmith-4vcpu-ubuntu-2404
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v6
1414
- name: Setup elixir
1515
id: beam
1616
uses: erlef/setup-beam@v1
1717
with:
1818
otp-version: 27.x # Define the OTP version [required]
1919
elixir-version: 1.18.x # Define the elixir version [required]
2020
- name: Cache Mix
21-
uses: actions/cache@v4
21+
uses: actions/cache@v5
2222
with:
2323
path: deps
2424
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
@@ -36,7 +36,7 @@ jobs:
3636
- name: Credo checks
3737
run: mix credo --strict --mute-exit-status
3838
- name: Retrieve PLT Cache
39-
uses: actions/cache@v4
39+
uses: actions/cache@v5
4040
id: plt-cache
4141
with:
4242
path: priv/plts

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- "mix.exs"
1212
- "Dockerfile"
1313
- "run.sh"
14+
- ".github/workflows/tests.yml"
1415

1516
push:
1617
branches:
@@ -29,15 +30,15 @@ jobs:
2930
runs-on: blacksmith-8vcpu-ubuntu-2404
3031

3132
steps:
32-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v6
3334
- name: Setup elixir
3435
id: beam
3536
uses: erlef/setup-beam@v1
3637
with:
3738
otp-version: 27.x # Define the OTP version [required]
3839
elixir-version: 1.18.x # Define the elixir version [required]
3940
- name: Cache Mix
40-
uses: actions/cache@v4
41+
uses: actions/cache@v5
4142
with:
4243
path: |
4344
deps

.github/workflows/version_updated.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- "mix.exs"
1212
- "Dockerfile"
1313
- "run.sh"
14+
- ".github/workflows/version_updated.yml"
1415

1516
permissions:
1617
contents: read
@@ -23,7 +24,7 @@ jobs:
2324
runs-on: blacksmith-4vcpu-ubuntu-2404
2425
steps:
2526
- name: Checkout code
26-
uses: actions/checkout@v3
27+
uses: actions/checkout@v6
2728

2829
- name: Verify Versions Updated
2930
uses: step-security/changed-files@v45

0 commit comments

Comments
 (0)