Skip to content

Commit

Permalink
attempt to add goreleaser build test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafibarash committed Sep 5, 2024
1 parent e277746 commit 32dfcb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on: [push, pull_request]
name: Test

jobs:
test:
go-test:
strategy:
matrix:
go-version: [1.21, 1.x] # Test 1.21 and tip
Expand Down Expand Up @@ -34,3 +34,16 @@ jobs:
run: |
go test -timeout 10s -v -tags=windows ./...
go test -race -timeout 10s -v -tags=windows ./...
goreleaser-test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
- name: Build GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 32dfcb9

Please sign in to comment.