Merge pull request #9 from mdsol/feature/gha #13
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: CI | |
on: | |
push: | |
paths: | |
- .github/workflows/ci.yml | |
- pkg/** | |
- go.mod | |
- go.sum | |
- Makefile | |
- register.go | |
permissions: | |
contents: read | |
jobs: | |
verify: | |
runs-on: [ ubuntu-latest ] | |
concurrency: | |
# Cancel intermediate builds | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: {} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.58.2 | |
args: --verbose --concurrency=2 --timeout=600s | |
- name: Test with the Go CLI | |
run: go test -v ./... |