-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates CI to use the new `buf-action` replacing `buf-setup`, `buf-lint`, `buf-breaking` and `buf-push` unifying these tasks as one. The new behaviour is as follows: - On pull_requests: run lint, format and breaking change detection checks. - On push to main: push the changes of the latest commit with the label of the current branch (main). The following changes were made to support the new aciton: - The file `.bufversion` at the repository root now controls the version. This is read by both the Makefile and the action to fetch the correct version of buf. - Checks no longer block pushes of commits to the BSR. - Formatting checks have been added to `buf-ci.yaml`.
- Loading branch information
1 parent
8e23155
commit 4f8001b
Showing
5 changed files
with
25 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.32.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: buf | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled, unlabeled] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
buf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
token: ${{ secrets.BUF_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters