Bump github.com/stretchr/testify from 1.11.1 to 1.12.0 #302
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| generated: | |
| name: Generated files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: 1.25.x | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Regenerate models | |
| run: go generate ./... | |
| - name: Verify generated files are current | |
| run: | | |
| status=$(git status --porcelain) | |
| if [ -n "$status" ]; then | |
| printf '%s\n' "$status" | |
| exit 1 | |
| fi | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| go-version: [1.26.x, 1.25.x] | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: true | |
| - name: Get dependencies | |
| run: go get -v -t -d ./... | |
| - name: Build | |
| run: go build -v . | |
| - name: Test | |
| run: go test -race -v ./... |