chore(deps): Update Go deps #764
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: Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - "v*" | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go: | |
| - "1.25" | |
| - "1.26" | |
| name: Test on Go ${{ matrix.go }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| check-latest: true | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up just | |
| uses: extractions/setup-crate@4993624604c307fbca528d28a3c8b60fa5ecc859 # v1.4.0 | |
| with: | |
| repo: casey/just | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| ~/.cache/cerbos-cloud-api/bin | |
| key: generate-${{ runner.os }}-go-${{matrix.go}}-${{ hashFiles('**/go.mod') }} | |
| restore-keys: | | |
| generate-${{ runner.os }}-go-${{matrix.go}}- | |
| - name: Test | |
| run: just test | |
| golangci: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: 1.26.x | |
| check-latest: true | |
| - name: Set up just | |
| uses: extractions/setup-crate@4993624604c307fbca528d28a3c8b60fa5ecc859 # v1.4.0 | |
| with: | |
| repo: casey/just | |
| - name: modernize | |
| run: just lint-modernize | |
| - name: golangci-lint | |
| uses: ./.github/actions/golangci-lint | |
| - name: Check repo status | |
| run: |- | |
| just generate | |
| REPO_STATUS="$(git status --porcelain)" | |
| if [[ ! -z $REPO_STATUS ]]; then | |
| echo "::error::Uncommitted changes detected" | |
| echo "$REPO_STATUS" | |
| git status -vv | |
| exit 1 | |
| fi | |
| buf: | |
| name: Proto check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Lint protos | |
| uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1.4.0 |