Skip to content

chore(deps): Update bufbuild/buf-setup-action action to v1.47.2 #360

chore(deps): Update bufbuild/buf-setup-action action to v1.47.2

chore(deps): Update bufbuild/buf-setup-action action to v1.47.2 #360

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
- 'v*'
jobs:
generate-build-and-check-changes:
name: Generate, build and check uncommitted changes
runs-on: ubuntu-latest
steps:
- name: Setup Buf
uses: bufbuild/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run the generate script
uses: cake-build/cake-action@v1
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
with:
cake-bootstrap: true
target: Generate
- name: Run the build script
uses: cake-build/cake-action@v1
with:
cake-bootstrap: true
target: Build
- name: Check repo status
run: |-
REPO_STATUS="$(git status --porcelain)"
if [[ ! -z $REPO_STATUS ]]; then
echo "::error::Uncommitted changes detected"
echo "$REPO_STATUS"
exit 1
fi
tests:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Setup Buf
uses: bufbuild/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run the test script
uses: cake-build/cake-action@v1
with:
cake-bootstrap: true
target: UnitTests