Merge pull request #362 from arnested/dependabot/github_actions/secur… #561
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: Build and test | |
| on: | |
| - push | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_and_test: | |
| name: Build and test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: arnested/setup-go@rc | |
| with: | |
| go-version-file: go.mod | |
| - run: go version | |
| - name: Test | |
| uses: robherley/go-test-action@v0.7.1 | |
| with: | |
| testArguments: -race -cover -covermode=atomic -coverprofile=coverage.txt ./... | |
| - name: Upload coverage report to Codecov | |
| uses: codecov/codecov-action@v5 |