build(deps): bump gittools/actions to v3.1.3 #371
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
- "feature/*" | |
- "fix/*" | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
golangci: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.17 | |
- name: golangci-lint | |
uses: golangci/[email protected] # https://github.com/marketplace/actions/run-golangci-lint | |
with: | |
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | |
version: latest | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ^1.17 | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: go test -v -coverprofile=coverage.out -covermode=count -json ./... > test-report.out | |
- name: Run GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
version: latest | |
args: build --snapshot --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |