chore(deps): update google.golang.org/genproto/googleapis/api digest to 46eb208 #340
This file contains 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: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
check-latest: true | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install just | |
uses: extractions/setup-just@v2 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/.cache/cerbos-cloud-api/bin | |
key: generate-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }} | |
restore-keys: | | |
generate-${{ runner.os }}-go- | |
- name: Test | |
run: just test | |
golangci: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
check-latest: true | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: latest | |
args: "--config=.golangci.yaml --fix" | |
- name: Install just | |
uses: extractions/setup-just@v2 | |
- 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: | |
- uses: actions/checkout@v4 | |
- name: Setup Buf | |
uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- name: Lint protos | |
uses: bufbuild/[email protected] | |
- name: Check formatting | |
run: buf format --diff --exit-code |