forked from getsentry/sentry
45 lines (37 loc) · 1.05 KB
/
api-docs-test.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
43
44
45
name: api docs
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: api docs test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Check for python and `api-docs` file changes
uses: getsentry/paths-filter@v2
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
- uses: volta-cli/action@v1
if: steps.changes.outputs.api_docs == 'true'
- name: Setup sentry python env
uses: ./.github/actions/setup-sentry
id: setup
if: steps.changes.outputs.api_docs == 'true'
with:
pip-cache-version: ${{ secrets.PIP_CACHE_VERSION }}
snuba: true
- name: Install Javascript Dependencies
if: steps.changes.outputs.api_docs == 'true'
run: |
cd api-docs && yarn install --frozen-lockfile
- name: Run API docs tests
if: steps.changes.outputs.api_docs == 'true'
run: |
make test-api-docs