-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: PR增加API breaking change检查 (#1224)
根package.json增加`pnpm api:breaking`命令,可检查api的破坏性更新。并增加一个workflow,专门用于检查破坏性更新。
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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,23 @@ | ||
name: Check SCOW API Breaking Changes | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [master] | ||
|
||
|
||
jobs: | ||
check-api-breaking-changes: | ||
name: Check SCOW API Breaking Changes | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: bufbuild/buf-setup-action@v1 | ||
|
||
- name: Check API Compatibility | ||
working-directory: protos | ||
run: buf breaking --against '../.git#branch=origin/master,subdir=protos' |
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