Skip to content

Commit 305bea7

Browse files
committed
.github/workflows: upgrade setup-go to v3 and enable caching
https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs Note: this doesn't help caching of the installed tools dependencies. Change-Id: Ifb56798c41719a629099bdf0540b7896ee646ae2 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/418358 TryBot-Result: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
1 parent b6aad3e commit 305bea7

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
cache: 'npm'
2828

2929
- name: Setup Go
30-
uses: actions/setup-go@v2
30+
uses: actions/setup-go@v3
3131
with:
3232
go-version: '1.18'
33+
check-latest: true
34+
cache: true
3335

3436
- name: Install dependencies
3537
run: npm ci

.github/workflows/test-long-all.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ jobs:
3030
cache: 'npm'
3131

3232
- name: Setup Go
33-
uses: actions/setup-go@v2
33+
uses: actions/setup-go@v3
3434
with:
3535
go-version: ${{ matrix.go }}
3636
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
37+
check-latest: true
38+
cache: true
3739

3840
- name: Install dependencies
3941
run: npm ci

.github/workflows/test-long.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
cache: 'npm'
3030

3131
- name: Setup Go
32-
uses: actions/setup-go@v2
32+
uses: actions/setup-go@v3
3333
with:
3434
go-version: ${{ matrix.go }}
3535
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
36+
check-latest: true
37+
cache: true
3638

3739
- name: Install dependencies
3840
run: npm ci

.github/workflows/test-smoke.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
cache: 'npm'
2929

3030
- name: Setup Go
31-
uses: actions/setup-go@v2
31+
uses: actions/setup-go@v3
3232
with:
3333
go-version: '1.18'
34+
check-latest: true
35+
cache: true
3436

3537
- name: Install dependencies
3638
run: npm ci

.github/workflows/wiki.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
repository: ${{github.repository}}.wiki
3333
path: wiki
3434
- name: Setup Go
35-
uses: actions/setup-go@v2
35+
uses: actions/setup-go@v3
36+
with:
37+
go-version: '1.18'
38+
check-latest: true
39+
cache: true
3640
- name: Push to wiki
3741
run: |
3842
cd vscode-go

0 commit comments

Comments
 (0)