Skip to content

Commit 6e8430d

Browse files
authored
add api-breakage CI check (#15)
1 parent e3f5e6e commit 6e8430d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/api-breakage.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: API breaking changes
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
linux:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 15
10+
container:
11+
image: swift:6.0
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
# https://github.com/actions/checkout/issues/766
18+
- name: Mark the workspace as safe
19+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
20+
- name: API breaking changes
21+
run: |
22+
swift package diagnose-api-breaking-changes origin/${GITHUB_BASE_REF}

0 commit comments

Comments
 (0)