1
+ name : backend
2
+
3
+ on :
4
+ push : {}
5
+ workflow_dispatch : {}
6
+
7
+ jobs :
8
+ api-docs-gha :
9
+ name : api docs test on GHA
10
+ runs-on : ubuntu-24.04
11
+ steps :
12
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
13
+ with :
14
+ repository : getsentry/sentry
15
+ ref : master
16
+ submodules : true
17
+
18
+ - uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
19
+ id : setup-node
20
+ with :
21
+ node-version-file : " .volta.json"
22
+
23
+ - name : Setup sentry python env
24
+ uses : ./.github/actions/setup-sentry
25
+ id : setup
26
+ with :
27
+ mode : default
28
+
29
+ - name : Run API docs tests
30
+ # install ts-node for ts build scripts to execute properly without potentially installing
31
+ # conflicting deps when running scripts locally
32
+ # see: https://github.com/getsentry/sentry/pull/32328/files
33
+ run : |
34
+ yarn add ts-node && make test-api-docs
35
+
36
+ - name : Inspect failure
37
+ if : failure()
38
+ run : |
39
+ if command -v devservices; then
40
+ devservices logs
41
+ fi
42
+
43
+
44
+ api-docs-depot :
45
+ name : api docs test on Depot
46
+ runs-on : depot-ubuntu-22.04
47
+ steps :
48
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49
+ with :
50
+ repository : getsentry/sentry
51
+ ref : master
52
+ submodules : true
53
+
54
+ - uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
55
+ id : setup-node
56
+ with :
57
+ node-version-file : " .volta.json"
58
+
59
+ - name : Setup sentry python env
60
+ uses : ./.github/actions/setup-sentry
61
+ id : setup
62
+ with :
63
+ mode : default
64
+
65
+ - name : Run API docs tests
66
+ # install ts-node for ts build scripts to execute properly without potentially installing
67
+ # conflicting deps when running scripts locally
68
+ # see: https://github.com/getsentry/sentry/pull/32328/files
69
+ run : |
70
+ yarn add ts-node && make test-api-docs
71
+
72
+ - name : Inspect failure
73
+ if : failure()
74
+ run : |
75
+ if command -v devservices; then
76
+ devservices logs
77
+ fi
0 commit comments