-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 792 Bytes
/
ci.yml
File metadata and controls
33 lines (26 loc) · 792 Bytes
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
name: APX Schema CI
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install APX
uses: infobloxopen/apx@main
- name: Lint schemas
run: apx lint
- name: Check for breaking changes
run: apx breaking --against origin/main
- name: Check third-party protos are in sync
run: |
./scripts/sync-third-party.sh --check-only 2>&1 | tee /tmp/sync-check.txt
if grep -qE '^\s+[+~-] ' /tmp/sync-check.txt; then
echo "::error::Third-party protos are out of sync. Run ./scripts/sync-third-party.sh and commit the results."
exit 1
fi