Skip to content

Commit

Permalink
updated actions and releaser specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
eRaMvn committed Dec 16, 2020
1 parent 435a1fd commit 690646b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- name: Check out source code
uses: actions/checkout@v2

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.15.x

- name: Set up python environment for pre-commit
uses: actions/setup-python@v2
with:
Expand All @@ -46,4 +51,10 @@ jobs:
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
run: |
go get -u golang.org/x/lint/golint
go get github.com/fzipp/gocyclo/cmd/gocyclo
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.33.0
go get -v -u github.com/go-critic/go-critic/cmd/gocritic
pre-commit run --all-files
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@

test
bin
dist
tfc-helper
.vscode
25 changes: 16 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,27 @@ builds:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
ldflags:
- -s -w -X main.version={{.Version}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- format: tar.gz
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- LICENSE*
- README*

checksum:
name_template: 'checksums.txt'
name_template: "{{ .ProjectName }}_checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit 690646b

Please sign in to comment.