Skip to content

chore(deps): update go deps #224

chore(deps): update go deps

chore(deps): update go deps #224

Workflow file for this run

---
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@v4
with:
go-version: 1.20.x
check-latest: true
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v3
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: make test
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
check-latest: true
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: '--config=.golangci.yaml --fix'
- name: Check repo status
run: |-
make 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