Skip to content

Commit c078dbf

Browse files
authored
Merge pull request #170 from wellle/workflows-cache-v3
Use actions/cache@v3 in github workflows
2 parents 1d31dc9 + bba0a65 commit c078dbf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/bench.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
ref: ${{ (github.event.inputs.new != '') && github.event.inputs.new || github.event.ref }}
4949

5050
- name: Go cache
51-
uses: actions/cache@v2
51+
uses: actions/cache@v3
5252
with:
5353
# In order:
5454
# * Module download cache
@@ -61,15 +61,15 @@ jobs:
6161
${{ runner.os }}-go-cache
6262
6363
- name: Restore benchstat
64-
uses: actions/cache@v2
64+
uses: actions/cache@v3
6565
with:
6666
path: ~/go/bin/benchstat
6767
key: ${{ runner.os }}-benchstat-legacy
6868

6969
- name: Restore base benchmark result
7070
id: base-benchmark
7171
if: env.CACHE_BENCHMARK == 'on'
72-
uses: actions/cache@v2
72+
uses: actions/cache@v3
7373
with:
7474
path: |
7575
bench-master.txt

.github/workflows/gorelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
cancel-in-progress: true
99

1010
env:
11-
GO_VERSION: 1.19.x
11+
GO_VERSION: stable
1212
jobs:
1313
gorelease:
1414
runs-on: ubuntu-latest
@@ -30,7 +30,7 @@ jobs:
3030
- name: Checkout code
3131
uses: actions/checkout@v2
3232
- name: Gorelease cache
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
3535
path: |
3636
~/go/bin/gorelease
@@ -52,4 +52,4 @@ jobs:
5252
5353
<pre>
5454
${{ steps.gorelease.outputs.report }}
55-
</pre>
55+
</pre>

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v2
3737

3838
- name: Go cache
39-
uses: actions/cache@v2
39+
uses: actions/cache@v3
4040
with:
4141
# In order:
4242
# * Module download cache
@@ -51,7 +51,7 @@ jobs:
5151
- name: Restore base test coverage
5252
id: base-coverage
5353
if: matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != ''
54-
uses: actions/cache@v2
54+
uses: actions/cache@v3
5555
with:
5656
path: |
5757
unit-base.txt

0 commit comments

Comments
 (0)