Skip to content

Commit

Permalink
Update CI to buf-action default behaviour (#251)
Browse files Browse the repository at this point in the history
Changes the CI behaviour to the defaults. Disables push & archive steps
as the dep on v2 modules (which is fixed in #250).
  • Loading branch information
emcfarlane committed Sep 7, 2024
1 parent 8500002 commit 28d4aa9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/buf-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Buf CI
on:
push:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
delete:
permissions:
contents: read
pull-requests: write
jobs:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
with:
push: false
archive: false
9 changes: 2 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ jobs:
with:
go-version: stable
cache-dependency-path: go.work.sum
- name: Buf CI
- name: Install buf
uses: bufbuild/buf-action@v1
with:
github_token: ${{ github.token }}
format: true
lint: true
breaking: true
push: false
archive: false
setup_only: true
- name: Buf generate
run: |
mkdir -p .tmp/bin
Expand Down

0 comments on commit 28d4aa9

Please sign in to comment.