feat: no local commits to main branch #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
jobs: | |
buf-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.ref }} | |
- uses: bufbuild/[email protected] | |
- name: buf lint and breaking | |
uses: bufbuild/buf-action@v1 | |
with: | |
lint: true | |
breaking: true | |
format: false | |
breaking_against: 'https://github.com/getsentry/sentry-protos.git#branch=main' | |
codegen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_RELEASE_PAT }} | |
fetch-depth: 0 | |
- name: Install protoc | |
uses: arduino/setup-protoc@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: build python bindings | |
run: | | |
pip install -r requirements.txt | |
make build-py | |
- name: build rust bindings | |
run: | | |
make build-rust | |
- name: run python tests/examples | |
run: | | |
make test-py |