diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c472913fd17f90fcb02352c6bdbe34b79eef8247..40625e2e278d5a728866ec3e4bb27ca43a1a38e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,16 +6,12 @@ on: pull_request: branches: - '**' - jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: golangci-lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s - ./bin/golangci-lint run -v + - uses: golangci/golangci-lint-action@v2 build: runs-on: ${{ matrix.os }} needs: lint @@ -27,7 +23,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.15 + go-version: 1.16 - run: go build ./cmd/changelog-generator-default/ - run: go test -v ./... release: @@ -37,7 +33,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.15 + go-version: 1.16 - run: | go get github.com/mitchellh/gox go get github.com/tcnksm/ghr @@ -47,7 +43,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} ghr: true - run: | - gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/changelog-generator-default/pkg/generator.CGVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/changelog-generator-default/ + 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/changelog-generator-default/pkg/generator.CGVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/changelog-generator-default/ cd bin/ && shasum -a 256 * > ./changelog-generator-default_v${{steps.semrel.outputs.version}}_checksums.txt && cd - if: steps.semrel.outputs.version != '' env: diff --git a/go.mod b/go.mod index 21ad53ef63074e4b5ea65e5dd5be3089c3bb32b2..8aa69c763d066a358c8494a09fdac128f4dc1b7e 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-semantic-release/changelog-generator-default -go 1.15 +go 1.16 require github.com/go-semantic-release/semantic-release/v2 v2.12.1