File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
branches :
8
8
- ' **'
9
-
10
9
jobs :
11
10
lint :
12
11
runs-on : ubuntu-latest
13
12
steps :
14
13
- uses : actions/checkout@v2
15
- - name : golangci-lint
16
- run : |
17
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
18
- ./bin/golangci-lint run -v
14
+ - uses : golangci/golangci-lint-action@v2
19
15
build :
20
16
runs-on : ${{ matrix.os }}
21
17
needs : lint
27
23
- uses : actions/checkout@v2
28
24
- uses : actions/setup-go@v2
29
25
with :
30
- go-version : 1.15
26
+ go-version : 1.16
31
27
- run : go build ./cmd/commit-analyzer-cz/
32
28
- run : go test -v ./...
33
29
release :
37
33
- uses : actions/checkout@v2
38
34
- uses : actions/setup-go@v2
39
35
with :
40
- go-version : 1.15
36
+ go-version : 1.16
41
37
- run : |
42
38
go get github.com/mitchellh/gox
43
39
go get github.com/tcnksm/ghr
47
43
github-token : ${{ secrets.GITHUB_TOKEN }}
48
44
ghr : true
49
45
- run : |
50
- gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
46
+ gox -parallel 4 -osarch="linux/amd64 darwin/amd64 darwin/arm64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
51
47
cd bin/ && shasum -a 256 * > ./commit-analyzer-cz_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
52
48
if: steps.semrel.outputs.version != ''
53
49
env:
Original file line number Diff line number Diff line change 1
1
module github.com/go-semantic-release/commit-analyzer-cz
2
2
3
- go 1.15
3
+ go 1.16
4
4
5
5
require (
6
6
github.com/go-semantic-release/semantic-release/v2 v2.12.1
You can’t perform that action at this time.
0 commit comments