Skip to content

Commit 70dbf84

Browse files
authored
sync(ci): update GitHub Actions cache and setup-go versions (#115)
1 parent a855d59 commit 70dbf84

11 files changed

Lines changed: 26 additions & 20 deletions

File tree

.github/actions/cache-redis-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ runs:
126126
- name: 💾 Restore Redis image from cache
127127
if: contains(inputs.cache-mode, 'restore')
128128
id: restore-redis-image
129-
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
129+
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
130130
with:
131131
path: ${{ steps.cache-config.outputs.cache-path }}
132132
key: ${{ steps.cache-config.outputs.cache-key }}
@@ -222,7 +222,7 @@ runs:
222222
# --------------------------------------------------------------------
223223
- name: 🗄️ Save Redis image cache
224224
if: contains(inputs.cache-mode, 'save') && steps.save-redis-image.outputs.image-saved == 'true' && steps.restore-redis-image.outputs.cache-hit != 'true'
225-
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
225+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
226226
with:
227227
path: ${{ steps.cache-config.outputs.cache-path }}
228228
key: ${{ steps.cache-config.outputs.cache-key }}

.github/actions/setup-benchstat/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787
- name: 💾 Restore benchstat binary cache
8888
if: steps.version-check.outputs.skip != 'true'
8989
id: benchstat-cache
90-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
90+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
9191
with:
9292
path: ~/.cache/benchstat-bin
9393
key: ${{ inputs.runner-os }}-benchstat-${{ inputs.benchstat-version }}

.github/actions/setup-go-with-cache/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ runs:
215215
# --------------------------------------------------------------------
216216
- name: 💾 Go module cache
217217
id: restore-gomod
218-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
218+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
219219
with:
220220
path: ~/go/pkg/mod
221221
key: ${{ steps.cache-keys.outputs.module-key }}
@@ -289,7 +289,7 @@ runs:
289289
# --------------------------------------------------------------------
290290
- name: 💾 Go build cache
291291
id: restore-gobuild
292-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
292+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
293293
with:
294294
path: |
295295
~/.cache/go-build
@@ -442,7 +442,7 @@ runs:
442442
# --------------------------------------------------------------------
443443
- name: 🏗️ Set up Go
444444
id: setup-go
445-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
445+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
446446
with:
447447
go-version: ${{ inputs.go-version }}
448448
cache: false # we handle caches ourselves

.github/actions/setup-goreleaser/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ runs:
7272
- name: 💾 Restore goreleaser binary cache
7373
id: goreleaser-cache
7474
if: steps.check-existing.outputs.exists != 'true'
75-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
75+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
7676
with:
7777
path: |
7878
~/.cache/goreleaser-bin
@@ -105,7 +105,7 @@ runs:
105105
# --------------------------------------------------------------------
106106
- name: ✅ Install GoReleaser (cache miss)
107107
if: steps.check-existing.outputs.exists != 'true' && steps.goreleaser-cache.outputs.cache-hit != 'true'
108-
uses: goreleaser/goreleaser-action@v6
108+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
109109
with:
110110
distribution: goreleaser
111111
version: ${{ inputs.goreleaser-version }}

.github/actions/setup-mage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
# --------------------------------------------------------------------
4848
- name: 💾 Restore mage binary cache
4949
id: mage-cache
50-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
50+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
5151
with:
5252
path: ~/.cache/mage-bin
5353
key: ${{ inputs.runner-os }}-mage-${{ inputs.mage-version }}

.github/actions/setup-magex/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
- name: 💾 Restore magex binary cache
5454
id: magex-cache
5555
if: inputs.use-local != 'true'
56-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
56+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
5757
with:
5858
path: |
5959
~/.cache/magex-bin
@@ -82,7 +82,7 @@ runs:
8282
- name: 💾 Restore magex binary cache (local)
8383
id: magex-local-cache
8484
if: inputs.use-local == 'true'
85-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
85+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
8686
with:
8787
path: |
8888
~/.cache/magex-local

.github/actions/upload-artifact-resilient/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ runs:
5252
- name: "📤 Upload ${{ inputs.artifact-name }} (attempt 1)"
5353
id: attempt1
5454
continue-on-error: true
55-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
55+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5656
with:
5757
name: ${{ inputs.artifact-name }}
5858
path: ${{ inputs.artifact-path }}
@@ -80,7 +80,7 @@ runs:
8080
id: attempt2
8181
if: steps.attempt1.outcome == 'failure'
8282
continue-on-error: true
83-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
83+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
8484
with:
8585
name: ${{ inputs.artifact-name }}
8686
path: ${{ inputs.artifact-path }}
@@ -108,7 +108,7 @@ runs:
108108
id: attempt3
109109
if: steps.attempt1.outcome == 'failure' && steps.attempt2.outcome == 'failure'
110110
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
111-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
111+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
112112
with:
113113
name: ${{ inputs.artifact-name }}
114114
path: ${{ inputs.artifact-path }}

.github/actions/upload-statistics/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
- name: 📤 Upload ${{ inputs.artifact-name }}
6060
if: always() # Always run to capture data even on job failure
6161
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
62-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
62+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6363
with:
6464
name: ${{ inputs.artifact-name }}
6565
path: ${{ inputs.artifact-path }}

.github/actions/warm-cache/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ runs:
267267
# ────────────────────────────────────────────────────────────────────────────
268268
- name: 📥 Full checkout for module download (module cache miss)
269269
if: steps.setup-go.outputs.module-cache-hit != 'true'
270-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
270+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
271271
with:
272272
persist-credentials: false
273273

@@ -306,7 +306,7 @@ runs:
306306
# ────────────────────────────────────────────────────────────────────────────
307307
- name: 📥 Full checkout for build warming (module hit, build miss)
308308
if: steps.setup-go.outputs.module-cache-hit == 'true' && steps.setup-go.outputs.build-cache-hit != 'true'
309-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
309+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
310310
with:
311311
persist-credentials: false
312312

@@ -360,7 +360,7 @@ runs:
360360
# ────────────────────────────────────────────────────────────────────────────
361361
- name: 💾 Save Go build cache
362362
if: steps.setup-go.outputs.build-cache-hit != 'true'
363-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.0.2
363+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
364364
with:
365365
path: |
366366
~/.cache/go-build
@@ -372,7 +372,7 @@ runs:
372372
# ────────────────────────────────────────────────────────────────────────────
373373
- name: 💾 Save Go module cache
374374
if: steps.setup-go.outputs.module-cache-hit != 'true'
375-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.0.2
375+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
376376
with:
377377
path: ~/go/pkg/mod
378378
key: ${{ steps.cache-keys.outputs.module-key }}
@@ -437,7 +437,7 @@ runs:
437437
# --------------------------------------------------------------------
438438
- name: 📤 Upload cache statistics
439439
if: always()
440-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
440+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
441441
with:
442442
name: cache-stats-${{ inputs.matrix-os }}-${{ inputs.go-version }}
443443
path: cache-stats-*.json

.github/workflows/fortress-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,6 +2484,9 @@ jobs:
24842484
# --------------------------------------------------------------------
24852485
# Upload to Codecov
24862486
# --------------------------------------------------------------------
2487+
# NOTE: codecov/codecov-action@v5.5.2 is the latest release and still uses Node.js 20.
2488+
# This will trigger a "Node.js 20 actions are deprecated" warning until Codecov
2489+
# releases a new version with Node.js 24 support. Expected and harmless for now.
24872490
- name: 📈 Upload coverage to Codecov
24882491
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
24892492
with:

0 commit comments

Comments
 (0)