Skip to content

Commit 78a150b

Browse files
committed
api break 2
1 parent b857d7d commit 78a150b

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
1212
with:
1313
license_header_check_project_name: "gRPC"
14-
# See Package.swift for an explanation of this.
15-
linux_pre_build_command: "export GRPC_SWIFT_PROTOBUF_NO_VERSION=1"
1614

1715
grpc-soundness:
1816
name: Soundness

.github/workflows/soundness.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,30 @@ jobs:
3535
- name: Check generated code
3636
run: |
3737
./dev/check-generated-code.sh
38+
39+
api-breakage-check:
40+
name: API breakage check 2
41+
runs-on: ubuntu-latest
42+
container:
43+
image: swift:latest
44+
timeout-minutes: 20
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
with:
49+
persist-credentials: false
50+
submodules: true
51+
fetch-tags: true
52+
fetch-depth: 0 # Fetching tags requires fetch-depth: 0 (https://github.com/actions/checkout/issues/1471)
53+
- name: Mark the workspace as safe
54+
# https://github.com/actions/checkout/issues/766
55+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
56+
- name: Run API breakage check
57+
shell: bash
58+
run: |
59+
export GRPC_SWIFT_PROTOBUF_NO_VERSION=1
60+
61+
git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
62+
BASELINE_REF='pull-base-ref'
63+
echo "Using baseline: $BASELINE_REF"
64+
swift package diagnose-api-breaking-changes "$BASELINE_REF"

0 commit comments

Comments
 (0)