forked from getsentry/sentry
60 lines (54 loc) · 1.65 KB
/
symbolicator-integration-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: symbolicator integration
on:
push:
branches:
- master
- releases/**
pull_request:
jobs:
test:
name: symbolicator test
runs-on: ubuntu-18.04
timeout-minutes: 10
strategy:
matrix:
python-version: [3.8.12]
steps:
- uses: actions/checkout@v2
with:
# Avoid codecov error message related to SHA resolution:
# https://github.com/codecov/codecov-bash/blob/7100762afbc822b91806a6574658129fe0d23a7d/codecov#L891
fetch-depth: '2'
- name: Check for python file changes
uses: getsentry/paths-filter@v2
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
- name: Setup sentry env (python ${{ matrix.python-version }})
uses: ./.github/actions/setup-sentry
id: setup
if: steps.changes.outputs.backend == 'true'
with:
python-version: ${{ matrix.python-version }}
pip-cache-version: ${{ secrets.PIP_CACHE_VERSION }}
snuba: true
kafka: true
- name: Start symbolicator
if: steps.changes.outputs.backend == 'true'
run: |
echo $PWD
docker run \
-d \
-v $PWD/config/symbolicator/:/etc/symbolicator \
--network host \
--name symbolicator \
us.gcr.io/sentryio/symbolicator:nightly \
run -c /etc/symbolicator/config.yml
docker ps -a
- name: Run test
if: steps.changes.outputs.backend == 'true'
run: |
make test-symbolicator
- name: Handle artifacts
uses: ./.github/actions/artifacts