parent
ad88e9754e
commit
1da5241ef7
1 changed files with 10 additions and 3 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -49,15 +49,22 @@ jobs:
|
||||||
uses: ./.github/actions/check_style
|
uses: ./.github/actions/check_style
|
||||||
|
|
||||||
- name: Ensure fresh merge
|
- name: Ensure fresh merge
|
||||||
|
shell: bash -euxo pipefail {0}
|
||||||
run: |
|
run: |
|
||||||
git checkout -B temp
|
if [ -z "$GITHUB_BASE_REF" ];
|
||||||
git merge -q origin/main -m "merge main into temp"
|
then
|
||||||
|
echo "BUF_BASE_BRANCH=$(git merge-base origin/main HEAD)" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
git checkout -B temp
|
||||||
|
git merge -q origin/$GITHUB_BASE_REF -m "merge main into temp"
|
||||||
|
echo "BUF_BASE_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: bufbuild/buf-setup-action@v1
|
- uses: bufbuild/buf-setup-action@v1
|
||||||
- uses: bufbuild/buf-breaking-action@v1
|
- uses: bufbuild/buf-breaking-action@v1
|
||||||
with:
|
with:
|
||||||
input: "crates/rpc/proto/"
|
input: "crates/rpc/proto/"
|
||||||
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main,subdir=crates/rpc/proto/"
|
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=${BUF_BASE_BRANCH},subdir=crates/rpc/proto/"
|
||||||
|
|
||||||
macos_tests:
|
macos_tests:
|
||||||
name: (macOS) Run Clippy and tests
|
name: (macOS) Run Clippy and tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue