Skip to content

Commit

Permalink
Setup buf-action in CI (#232)
Browse files Browse the repository at this point in the history
Changes to use buf-action from setup action in CI.
  • Loading branch information
emcfarlane authored Aug 2, 2024
1 parent cd98b7d commit 40f7ac7
Showing 1 changed file with 8 additions and 10 deletions.
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

0 comments on commit 40f7ac7

Please sign in to comment.