Skip to content

Commit

Permalink
Add tests to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuntwork committed Aug 22, 2021
1 parent 7a748e8 commit a94d149
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
- name: Add tools
run: apt-get update && apt-get install make curl upx
- name: Test
run: make test
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ builds:
- arm64
goarm:
- 7
hooks:
post: upx "{{ .Path }}"
1 change: 1 addition & 0 deletions cmd/fedup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
"and turns all duplicates into hard links."
)

//nolint:gochecknoglobals
var (
dryrun bool
quiet bool
Expand Down

0 comments on commit a94d149

Please sign in to comment.