Skip to content

Commit

Permalink
chore: run go test in goreleaser hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tauslim committed Feb 29, 2024
1 parent 8866187 commit 082e035
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: Test with Go
run: go test -json > TestResults-${{ matrix.go-version }}.json

- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json

# run goreleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
3 changes: 1 addition & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ version: 1

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
- go test ./...

builds:
- env:
Expand Down

0 comments on commit 082e035

Please sign in to comment.