File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 11
11
uses : swiftlang/github-workflows/.github/workflows/soundness.yml@main
12
12
with :
13
13
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"
16
14
17
15
grpc-soundness :
18
16
name : Soundness
Original file line number Diff line number Diff line change 35
35
- name : Check generated code
36
36
run : |
37
37
./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"
You can’t perform that action at this time.
0 commit comments