File tree Expand file tree Collapse file tree 5 files changed +1048
-217
lines changed
sentry-options/schemas/snuba Expand file tree Collapse file tree 5 files changed +1048
-217
lines changed Original file line number Diff line number Diff line change 1+ name : Validate Sentry Options Schema
2+
3+ on :
4+ pull_request :
5+ merge_group :
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+ cancel-in-progress : true
10+
11+ jobs :
12+ files-changed :
13+ name : files-changed
14+ runs-on : ubuntu-latest
15+ outputs :
16+ schemas : ${{ steps.changes.outputs.schemas }}
17+ steps :
18+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19+ - name : Check for relevant file changes
20+ uses : getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
21+ id : changes
22+ with :
23+ filters : |
24+ schemas:
25+ - 'sentry-options/schemas/**'
26+
27+ validate-schema :
28+ if : needs.files-changed.outputs.schemas == 'true'
29+ needs : files-changed
30+ name : Validate Schema Evolution
31+ uses : getsentry/sentry-options/.github/workflows/validate-schema.yml@3e1f872ac6fd477bf22e53fd67eb30b761b4169b
32+ secrets : inherit
33+ with :
34+ schemas-path : sentry-options/schemas
Original file line number Diff line number Diff line change @@ -223,5 +223,9 @@ RUN set -ex; \
223223 rm -rf /tmp/rust_wheels/; \
224224 snuba --help
225225
226+ # set up sentry options schemas and default path
227+ COPY sentry-options/schemas /etc/sentry-options/schemas
228+ ENV SENTRY_OPTIONS_DIR=/etc/sentry-options
229+
226230ENV PATH="${PATH}:/root/.cargo/bin/"
227231USER snuba
You can’t perform that action at this time.
0 commit comments