Bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0 in the action-d… #1224
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 | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/**' | |
- 'cmd/**' | |
- 'core/**' | |
- 'then/**' | |
- 'main.go' | |
- 'go.sum' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/**' | |
- 'cmd/**' | |
- 'core/**' | |
- 'then/**' | |
- 'main.go' | |
- 'go.sum' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
# Required: the version of golangci-lint is required and must be specified | |
# without patch version: we always use the latest patch version. | |
version: v1.60 | |
- name: Gen | |
run: go run main.go gen | |
- name: Test | |
run: go test -coverprofile=c.out ./... | |
- name: Validate Changie fragments | |
run: go run main.go batch major --dry-run | |
- name: Coverage | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ./c.out | |
force-coverage-parser: go | |