Skip to content

Commit 1f8361a

Browse files
committed
chore(ci): update GitHub Actions to latest versions
Update GitHub Actions dependencies across all workflows to their latest stable versions to ensure compatibility, security patches, and latest features. This includes checkout@v5, cache@v4, setup-node@v6, and upload-artifact@v5. Also updates Swagger UI from v5.17.14 to v5.30.2 for improved API documentation rendering. These updates address deprecation warnings and ensure continued compatibility with GitHub Actions infrastructure. Signed-off-by: Davide Briani <davide.briani@secomind.com>
1 parent 4704fdb commit 1f8361a

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/backend-test.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-22.04
5353
steps:
5454
- name: Checkout repository
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v5
5656
with:
5757
show-progress: false
5858

@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Cache dependencies
6767
id: cache-deps
68-
uses: actions/cache@v3
68+
uses: actions/cache@v4
6969
with:
7070
path: |
7171
backend/deps
@@ -96,7 +96,7 @@ jobs:
9696
# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
9797
# Cache key based on Elixir & Erlang version (also useful when running in matrix)
9898
- name: Cache Dialyzer's PLT
99-
uses: actions/cache/restore@v3
99+
uses: actions/cache/restore@v4
100100
id: plt_cache
101101
with:
102102
key: "${{ runner.os }}-\
@@ -113,7 +113,7 @@ jobs:
113113
# By default, the GitHub Cache action will only save the cache if all steps in the job succeed,
114114
# so we separate the cache restore and save steps in case running dialyzer fails.
115115
- name: Save PLT cache
116-
uses: actions/cache/save@v3
116+
uses: actions/cache/save@v4
117117
if: steps.plt_cache.outputs.cache-hit != 'true'
118118
id: plt_cache_save
119119
with:
@@ -146,7 +146,7 @@ jobs:
146146
147147
steps:
148148
- name: Checkout repository
149-
uses: actions/checkout@v4
149+
uses: actions/checkout@v5
150150
with:
151151
show-progress: false
152152

@@ -159,7 +159,7 @@ jobs:
159159

160160
- name: Cache dependencies
161161
id: cache-deps
162-
uses: actions/cache@v3
162+
uses: actions/cache@v4
163163
with:
164164
path: |
165165
backend/deps
@@ -202,7 +202,7 @@ jobs:
202202
--health-retries 5
203203
steps:
204204
- name: Checkout repository
205-
uses: actions/checkout@v4
205+
uses: actions/checkout@v5
206206
with:
207207
show-progress: false
208208

@@ -246,7 +246,7 @@ jobs:
246246

247247
- name: Cache dependencies
248248
id: cache-deps
249-
uses: actions/cache@v3
249+
uses: actions/cache@v4
250250
with:
251251
path: |
252252
backend/deps
@@ -303,7 +303,7 @@ jobs:
303303
--health-retries 5
304304
steps:
305305
- name: Checkout repository
306-
uses: actions/checkout@v4
306+
uses: actions/checkout@v5
307307
with:
308308
show-progress: false
309309

@@ -327,7 +327,7 @@ jobs:
327327

328328
- name: Cache dependencies
329329
id: cache-deps
330-
uses: actions/cache@v3
330+
uses: actions/cache@v4
331331
with:
332332
path: |
333333
backend/deps
@@ -357,7 +357,7 @@ jobs:
357357
runs-on: ubuntu-latest
358358
steps:
359359
- name: Checkout repository
360-
uses: actions/checkout@v4
360+
uses: actions/checkout@v5
361361
with:
362362
show-progress: false
363363

.github/workflows/docs-workflow.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@ jobs:
4646
runs-on: ubuntu-22.04
4747
steps:
4848
- name: Checkout the source
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
5050
with:
5151
path: edgehog
5252
show-progress: false
5353
- name: Checkout the docs repository
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v5
5555
with:
5656
repository: edgehog-device-manager/docs
5757
path: docs
5858
show-progress: false
5959
- name: Checkout the interfaces repository
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v5
6161
with:
6262
repository: edgehog-device-manager/edgehog-astarte-interfaces
6363
path: edgehog-astarte-interfaces
6464
show-progress: false
65-
- uses: actions/setup-node@v3
65+
- uses: actions/setup-node@v6
6666
with:
6767
node-version-file: edgehog/.tool-versions
6868

@@ -100,11 +100,11 @@ jobs:
100100
working-directory: ./edgehog/backend
101101
run: mix openapi.spec.yaml --spec EdgehogWeb.AdminAPI
102102
- name: Checkout Swagger UI
103-
uses: actions/checkout@v2
103+
uses: actions/checkout@v5
104104
with:
105105
repository: swagger-api/swagger-ui
106106
path: ./edgehog/backend/swagger-ui
107-
ref: 'v5.17.14'
107+
ref: 'v5.30.2'
108108
- name: Copy all Swagger UI files
109109
working-directory: ./edgehog/backend
110110
run: |
@@ -129,7 +129,7 @@ jobs:
129129
130130
# Upload as an artifact the generated HTML
131131
- name: Upload HTML documentation
132-
uses: actions/upload-artifact@v4
132+
uses: actions/upload-artifact@v5
133133
with:
134134
name: docs_html
135135
path: ./docs

.github/workflows/frontend-codeql-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
language: [ 'javascript' ]
4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
5050
with:
5151
show-progress: false
5252

.github/workflows/frontend-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Checkout repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747
with:
4848
show-progress: false
4949
- name: Install Node.js
50-
uses: actions/setup-node@v3
50+
uses: actions/setup-node@v6
5151
with:
5252
node-version-file: .tool-versions
5353
cache: "npm"
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- name: Checkout repository
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v5
9191
with:
9292
show-progress: false
9393

.github/workflows/reuse-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515
with:
1616
show-progress: false
1717
- name: REUSE Compliance Check

0 commit comments

Comments
 (0)