fix(ci): copy manpage before vet/build/test in CI workflows

This commit is contained in:
2026-06-30 21:46:12 +02:00
parent bff619bf84
commit b5fa009ec5
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -35,6 +35,9 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Copy manpage for //go:embed
run: cp man/goget.1 cmd/goget/man-page-data/goget.1
- name: Build
id: build
env:
+9
View File
@@ -19,6 +19,9 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Copy manpage for //go:embed
run: cp man/goget.1 cmd/goget/man-page-data/goget.1
- name: gofmt
# `gofmt -l` prints the names of unformatted files. An empty
# output is the only acceptable result.
@@ -40,6 +43,9 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Copy manpage for //go:embed
run: cp man/goget.1 cmd/goget/man-page-data/goget.1
- name: go test -race
run: go test -race -count=1 ./...
@@ -65,6 +71,9 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Copy manpage for //go:embed
run: cp man/goget.1 cmd/goget/man-page-data/goget.1
- name: go test -fuzz
run: |
for pkg in $(go list ./...); do
+1
View File
@@ -21,6 +21,7 @@ build:
# Run tests (race detector + fuzz seed corpus)
test:
cp man/goget.1 cmd/goget/man-page-data/goget.1
go test -race -count=1 ./...
# Remove build artifacts