Skip to content

Commit

Permalink
Run go generate during test step rather than build step
Browse files Browse the repository at this point in the history
  • Loading branch information
samuong committed Jul 22, 2024
1 parent 3d1868d commit 3cb9162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
with:
go-version: ${{ matrix.go }}

- run: go test ./...
- run: |
go generate
go test ./...
env:
CGO_ENABLED: 1
Expand Down Expand Up @@ -83,9 +85,7 @@ jobs:
run: |
echo SDKROOT=$(xcrun --sdk macosx --show-sdk-path) >> $GITHUB_ENV
- run: |
go generate
go build -v .
- run: go build -v .
env:
GOOS: ${{ matrix.target.goos }}
GOARCH: ${{ matrix.target.goarch }}
Expand Down

0 comments on commit 3cb9162

Please sign in to comment.