Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup buf-action in CI #232

Merged
merged 4 commits into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_dispatch: {} # support manual runs
permissions:
contents: read
pull-requests: write
jobs:
ci:
name: CI
Expand All @@ -28,18 +29,15 @@ jobs:
with:
go-version: stable
cache-dependency-path: go.work.sum
- name: Install buf
uses: bufbuild/buf-setup-action@v1.35.1
- name: Buf CI
uses: bufbuild/buf-action@v1
with:
github_token: ${{ github.token }}
- name: Buf format
run: buf format -d --exit-code
- name: Buf lint
uses: bufbuild/buf-lint-action@v1
- name: Buf breaking change detection
uses: bufbuild/buf-breaking-action@v1
with:
against: https://github.com/bufbuild/protovalidate.git#branch=main
format: true
lint: true
breaking: true
push: false
archive: false
- name: Buf generate
run: |
mkdir -p .tmp/bin
Expand Down