Handle nil policies #179
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 Tests (sourcetool) | |
| on: | |
| pull_request: | |
| jobs: | |
| test: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: "1.24" | |
| check-latest: true | |
| - name: Setup Buf | |
| uses: bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0 | |
| - name: Setup protoc | |
| uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # @v3.0.0 | |
| - name: Run Go tests | |
| run: | | |
| go test ./sourcetool/... | |
| - name: Check generated fakes | |
| run: | | |
| hack/verify-fakes.sh | |
| - name: Check protobuf generated codew | |
| run: | | |
| go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
| hack/verify-protos.sh |