Bump the all group with 4 updates #1449
Workflow file for this run
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: CI Build + Unit Test | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| merge_group: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # yamllint is installed in GitHub Actions base runner image: https://github.com/adrienverge/yamllint/pull/588 | |
| - run: yamllint . | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| run: go version && go build -v ./... | |
| - name: Test | |
| # -count=2 ensures that test fixtures cleanup after themselves | |
| # because any leftover state will generally cause the second run to fail. | |
| run: go test -shuffle=on -count=2 -race -cover -timeout=5m ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: go.mod | |
| - run: go mod tidy -diff | |
| - run: go vet ./... | |
| - name: Check gofmt passes | |
| run: | | |
| if [ -n "$(gofmt -l .)" ]; then | |
| echo "gofmt failed, please run gofmt -w ." | |
| exit 1 | |
| fi |