Update GitHub Actions to use latest setup-go and checkout actions #61
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
| name: golangci-lint | |
| #on: [push, pull_request] | |
| on: | |
| push: | |
| # branches: [ master ] | |
| branches: | |
| # - '*' # Matches zero or more characters, but does not match the / character. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet | |
| # - '*/*' # Matches every branch containing a single '/' | |
| - '**' # Matches zero or more of any character. | |
| # - '!master' # Excludes master | |
| pull_request: | |
| # branches: [ master ] | |
| branches: | |
| - '**' | |
| jobs: | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go: [ '1.21' , '1.22', '1.23', '1.24'] | |
| steps: | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - uses: actions/checkout@v5 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 |