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