fixup! Use goreleaser for building releases #5
Workflow file for this run
This file contains hidden or 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
| --- | |
| on: push | |
| name: Build and test | |
| permissions: | |
| contents: write | |
| jobs: | |
| build_and_test: | |
| name: Build and test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: arnested/setup-go@rc | |
| with: | |
| go-version-file: go.mod | |
| - name: Run go test | |
| uses: robherley/go-test-action@v0.7.1 | |
| with: | |
| testArguments: -race -cover -covermode=atomic -coverprofile=coverage.txt ./... | |
| - name: Build changelog | |
| run: go tool chglog init | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| args: release --snapshot | |
| nilaway: | |
| name: Nilaway | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: arnested/setup-go@rc | |
| with: | |
| go-version-file: go.mod | |
| - name: Run nilaway | |
| run: go tool nilaway ./... |