feat(install.sh): verify the checksum #616
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Release Go CLI | |
on: [push] | |
jobs: | |
tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
check-latest: true | |
- name: Execute the tests | |
run: go test -race ./... | |
releases: | |
needs: tests | |
name: GoReleaser Build on All OS but Windows | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
check-latest: true | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CGO_ENABLED: 0 | |
releases-windows: | |
needs: tests | |
name: GoReleaser Build on Windows | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
check-latest: true | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --config .goreleaser-windows.yaml --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |