Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,15 @@ jobs:

- name: Test
run: |
# -count=1 disables the test cache. NOT optional here: the
# parity corpora live in parity/, OUTSIDE these packages,
# and Go's cache does not invalidate on a file it did not
# see as a package input. Verified — corrupting a corpus
# vector and re-running plain `go test ./...` reports
# "ok (cached)" and stays green.
for m in . fiber gin; do
[ -f "$m/go.mod" ] || continue
echo "::group::go test ($m)"; (cd "$m" && go test ./...); echo "::endgroup::"
echo "::group::go test ($m)"; (cd "$m" && go test -count=1 ./...); echo "::endgroup::"
done

# Catch an unpublishable module at review time rather than at
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,15 @@ jobs:

- name: Vet + test every module
run: |
# -count=1 disables the test cache. NOT optional here: the
# parity corpora live in parity/, OUTSIDE these packages,
# and Go's cache does not invalidate on a file it did not
# see as a package input. Verified — corrupting a corpus
# vector and re-running plain `go test ./...` reports
# "ok (cached)" and stays green.
for m in . fiber gin; do
echo "::group::go vet + test ($m)"
(cd "$m" && go vet ./... && go test ./...)
(cd "$m" && go vet ./... && go test -count=1 ./...)
echo "::endgroup::"
done

Expand Down
Loading