fix: enable Go module cache in CI workflow
- Add cache: true to actions/setup-go@v5 so modules persist between steps - Fixes "missing go.sum entry" error on go vet step
This commit is contained in:
@@ -15,6 +15,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: "1.25"
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
run: go vet ./...
|
run: go vet ./...
|
||||||
@@ -37,6 +38,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: "1.25"
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./... -v -race -cover
|
run: go test ./... -v -race -cover
|
||||||
@@ -50,6 +52,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: "1.25"
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: go build -o mrixscraft-server ./cmd/server
|
run: go build -o mrixscraft-server ./cmd/server
|
||||||
|
|||||||
Reference in New Issue
Block a user