Update. #2443
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: Go checks | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Download dependencies | |
run: | | |
go mod download | |
go mod tidy -diff | |
- name: Generate mocks | |
run: make generate | |
- name: Run vet | |
run: make vet | |
- uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1 | |
with: | |
version: "2025.1.1" | |
install-go: false | |
- name: Run tests + race condition check | |
run: make race | |
- name: Check Go files are properly formatted | |
run: test -z $(gofmt -l .) |