-
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (33 loc) · 937 Bytes
/
soundness.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Soundness
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
soundness:
container:
image: swift:jammy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Mark repo safe in non-fake global config
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Run soundness
run: |
scripts/soundness.sh
exit $(git status --porcelain | wc -l)
api-breakage:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
container: swift:jammy
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# https://github.com/actions/checkout/issues/766
- name: API breaking changes
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
swift package diagnose-api-breaking-changes origin/main