ci: fix golang runner - use go 1.26, remove -mod=readonly, add go mod tidy
This commit is contained in:
@@ -9,10 +9,9 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: golang
|
runs-on: golang
|
||||||
container:
|
container:
|
||||||
image: golang:1.25
|
image: golang:1.26
|
||||||
env:
|
env:
|
||||||
GOPRIVATE: forgejo.riotpiao.com
|
GOPRIVATE: forgejo.riotpiao.com
|
||||||
GOFLAGS: -mod=readonly
|
|
||||||
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }}
|
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }}
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git authentication
|
- name: Configure git authentication
|
||||||
@@ -31,6 +30,9 @@ jobs:
|
|||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
|
- name: Tidy modules
|
||||||
|
run: go mod tidy
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user