Merge pull request #104 from Icinga/dependabot/go_modules/golang.org/… #291
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: Go | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: { } | |
| permissions: | |
| contents: read | |
| checks: write | |
| jobs: | |
| go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| only-new-issues: true | |
| # Enable the gosec linter w/o having to create a .golangci.yml config | |
| args: -E gosec | |
| - name: Test | |
| run: go test -v ./... |