Skip to content

Commit 283adeb

Browse files
committed
chore: pin GH actions; use Go stable and oldstable
Signed-off-by: thediveo <[email protected]>
1 parent d277016 commit 283adeb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: .devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"race": true,
1818
"verbose": true,
1919
"html": true
20-
}
20+
},
21+
"ghcr.io/thediveo/devcontainer-features/pin-github-action:0": {}
2122
},
2223
"remoteEnv": {
2324
"GOPATH": "/home/vscode/go",

Diff for: .github/workflows/buildandtest.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go: [ '1.19', '1.20' ]
17+
go: [ 'stable', 'oldstable' ]
1818
steps:
1919

2020
- name: Set up Go ${{matrix.go}}
21-
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3
21+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v4
2222
with:
2323
go-version: ${{matrix.go}}
2424
id: go
2525

2626
- name: Check out code into the Go module directory
27-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3
27+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
2828

2929
- name: Test
3030
run: go test -v -p=1 -race ./...

0 commit comments

Comments
 (0)