Repository navigation
all: Go version updates #7
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| go-version: ['1.24', '1.25'] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| # - name: Install mkcert CA in system trust store | |
| # run: go tool filippo.io/mkcert -install | |
| - name: Debug | |
| run: pwd && ls -alR | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Test with race detector | |
| run: go test -v -race ./... | |
| - name: Test without cgo | |
| env: | |
| CGO_ENABLED: 0 | |
| run: go test -v ./... | |
| - name: Verify repo is unchanged | |
| run: git diff --exit-code HEAD -w -G'(^[^# /])|(^#\w)|(^\s+[^#/])' # Ignore whitespace and comments |