chore(main): Release v4.6.12 (#700) #2189
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: "Unit tests" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| unitests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v6 | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - run: go mod download | |
| - run: go build ./... | |
| - name: gen | |
| if: github.event_name == 'pull_request' | |
| run: make gen | |
| - name: Fail if generation updated files | |
| if: github.event_name == 'pull_request' | |
| run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1) | |
| - name: Run tests | |
| run: go test -race ./... |