ci: fix test by removing -mod=readonly and adding go mod tidy
Build & Push Workflows Image / build-push (push) Failing after 1m9s
ci / test (push) Failing after 2m48s

This commit is contained in:
Test
2026-09-05 14:16:53 -07:00
parent a416566e40
commit 84162d4d4a
+4 -2
View File
@@ -9,10 +9,9 @@ jobs:
test: test:
runs-on: golang runs-on: golang
container: container:
image: golang:1.25 image: golang:1.21
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 ./...