forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.2 KB
/
openapi-diff.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
39
40
41
42
name: openapi-diff
on:
pull_request:
paths:
- 'api-docs/**'
jobs:
check-diff:
runs-on: ubuntu-18.04
steps:
- name: Checkout getsentry/sentry
uses: actions/checkout@v2
with:
path: sentry
- name: Getsentry Token
id: getsentry
uses: getsentry/action-github-app-token@v1
with:
app_id: ${{ secrets.SENTRY_INTERNAL_APP_ID }}
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
- name: Checkout getsentry/sentry-api-schema
uses: actions/checkout@v2
with:
ref: 'main'
repository: getsentry/sentry-api-schema
path: sentry-api-schema
token: ${{ steps.getsentry.outputs.token }}
- name: Install/setup node
uses: volta-cli/action@v1
- name: Build OpenAPI Derefed JSON
run: |
cd sentry
yarn install --frozen-lockfile
yarn run build-derefed-docs api-docs/openapi-derefed.json
- name: Compare OpenAPI Derefed JSON
run: |
npx json-diff --color sentry-api-schema/openapi-derefed.json sentry/api-docs/openapi-derefed.json