File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches :
88 - ' **'
9-
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
1413 - 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
1915 build :
2016 runs-on : ${{ matrix.os }}
2117 needs : lint
2723 - uses : actions/checkout@v2
2824 - uses : actions/setup-go@v2
2925 with :
30- go-version : 1.15
26+ go-version : 1.16
3127 - run : go build ./cmd/condition-gitlab/
3228 - run : go test -v ./...
3329 release :
3733 - uses : actions/checkout@v2
3834 - uses : actions/setup-go@v2
3935 with :
40- go-version : 1.15
36+ go-version : 1.16
4137 - run : |
4238 go get github.com/mitchellh/gox
4339 go get github.com/tcnksm/ghr
4743 github-token : ${{ secrets.GITHUB_TOKEN }}
4844 ghr : true
4945 - 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/condition-gitlab/pkg/condition.CIVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/condition-gitlab/
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/condition-gitlab/pkg/condition.CIVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/condition-gitlab/
5147 cd bin/ && shasum -a 256 * > ./condition-gitlab_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
5248 if: steps.semrel.outputs.version != ''
5349 env:
Original file line number Diff line number Diff line change 11module github.com/go-semantic-release/condition-gitlab
22
3- go 1.15
3+ go 1.16
44
55require (
66 github.com/go-semantic-release/semantic-release/v2 v2.12.1
You can’t perform that action at this time.
0 commit comments