1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- name: symbolicator integration
- on:
- push:
- branches:
- - master
- - releases/**
- pull_request:
- jobs:
- test:
- name: symbolicator test
- runs-on: ubuntu-20.04
- timeout-minutes: 10
- 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
- # Until GH composite actions can use `uses`, we need to setup python here
- - name: Set python version output
- id: python-version
- run: |
- echo "::set-output name=python-version::$(cat .python-version)"
- # Until GH composite actions can use `uses`, we need to setup python here
- - uses: actions/setup-python@v2
- if: steps.changes.outputs.backend == 'true'
- with:
- python-version: ${{ steps.python-version.outputs.python-version }}
- - name: Setup pip
- uses: ./.github/actions/setup-pip
- id: pip
- if: steps.changes.outputs.backend == 'true'
- - name: pip cache
- uses: actions/cache@v2
- if: steps.changes.outputs.backend == 'true'
- with:
- path: ${{ steps.pip.outputs.pip-cache-dir }}
- key: |
- ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}-${{ hashFiles('requirements-*.txt', '!requirements-pre-commit.txt') }}
- restore-keys: |
- ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}
- - name: Setup sentry env
- uses: ./.github/actions/setup-sentry
- id: setup
- if: steps.changes.outputs.backend == 'true'
- with:
- 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
|