Skip to content

Commit 64d7449

Browse files
authored
ci: lock down versions in lint.sh and fix ci (#523)
1 parent d1468a7 commit 64d7449

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- run: go version
2828
- uses: actions/setup-go@v5
29+
with:
30+
go-version-file: ./go.mod
2931
- run: ./ci/lint.sh
3032

3133
test:
@@ -42,7 +44,7 @@ jobs:
4244
with:
4345
go-version-file: ./go.mod
4446
- run: ./ci/test.sh
45-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4648
with:
4749
name: coverage.html
4850
path: ./ci/out/coverage.html

.github/workflows/daily.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
go-version-file: ./go.mod
3232
- run: AUTOBAHN=1 ./ci/test.sh
33-
- uses: actions/upload-artifact@v3
33+
- uses: actions/upload-artifact@v4
3434
with:
3535
name: coverage.html
3636
path: ./ci/out/coverage.html
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
go-version-file: ./go.mod
6262
- run: AUTOBAHN=1 ./ci/test.sh
63-
- uses: actions/upload-artifact@v3
63+
- uses: actions/upload-artifact@v4
6464
with:
6565
name: coverage-dev.html
6666
path: ./ci/out/coverage.html

ci/lint.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/sh
2+
set -x
23
set -eu
34
cd -- "$(dirname "$0")/.."
45

56
go vet ./...
67
GOOS=js GOARCH=wasm go vet ./...
78

8-
go install honnef.co/go/tools/cmd/staticcheck@latest
9+
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7
910
staticcheck ./...
1011
GOOS=js GOARCH=wasm staticcheck ./...
1112

@@ -15,7 +16,7 @@ govulncheck() {
1516
cat "$tmpf"
1617
fi
1718
}
18-
go install golang.org/x/vuln/cmd/govulncheck@latest
19+
go install golang.org/x/vuln/cmd/govulncheck@v1.1.1
1920
govulncheck ./...
2021
GOOS=js GOARCH=wasm govulncheck ./...
2122

0 commit comments

Comments
 (0)