Skip to content

Commit

Permalink
ci: run tests before cross-build
Browse files Browse the repository at this point in the history
Fail early in case of trivial errors, e.g. vet or test failures.
  • Loading branch information
tklauser committed Sep 26, 2024
1 parent 1290405 commit b2bc57d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
go mod tidy
git diff --exit-code
- name: Test (native)
run: go test -v ./...

- name: Build (cross-compile)
if: matrix.os == 'ubuntu-22.04'
run: |
Expand All @@ -47,6 +50,3 @@ jobs:
GOOS=openbsd go build ./...
GOOS=solaris go build ./...
GOOS=windows go build ./...
- name: Test (native)
run: go test -v ./...

0 comments on commit b2bc57d

Please sign in to comment.