Merge pull request 'ci: use node-go image instead of setup-go to reduce CI time' (#22) from feat/issue-11-ci-node-go-image into main
Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
+8
-12
@@ -6,11 +6,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
fmt:
|
fmt:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
container:
|
||||||
|
image: git.thuanle.me/public/node-go
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: |
|
- run: |
|
||||||
out=$(gofmt -l .)
|
out=$(gofmt -l .)
|
||||||
if [ -n "$out" ]; then
|
if [ -n "$out" ]; then
|
||||||
@@ -21,28 +20,25 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
container:
|
||||||
|
image: git.thuanle.me/public/node-go
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: go test ./...
|
- run: go test ./...
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
container:
|
||||||
|
image: git.thuanle.me/public/node-go
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: go vet ./...
|
- run: go vet ./...
|
||||||
|
|
||||||
staticcheck:
|
staticcheck:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
container:
|
||||||
|
image: git.thuanle.me/public/node-go
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
|
- run: go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
|
||||||
- run: $(go env GOPATH)/bin/staticcheck ./...
|
- run: $(go env GOPATH)/bin/staticcheck ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user