chore(billing): remove deprecated v1 proto fields #798
This file contains hidden or 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: | |
| paths: | |
| - 'proto/**' | |
| - 'buf.yaml' | |
| - 'buf.lock' | |
| - 'buf.gen.yaml' | |
| - 'build_rust/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| buf-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
| with: | |
| ref: ${{ github.ref }} | |
| - uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0 | |
| - name: buf lint, format, and breaking | |
| uses: bufbuild/buf-action@91da6f6a1a2c877c182debad24ca0a8a9d848be7 # v1 | |
| with: | |
| lint: true | |
| breaking: true | |
| format: true | |
| breaking_against: 'https://github.com/getsentry/sentry-protos.git#branch=main' | |
| codegen-rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3 | |
| - name: Build Rust bindings | |
| run: | | |
| make build-rust | |
| - name: Verify generated Rust code compiles | |
| run: | | |
| cd rust && cargo check && cargo clippy -- -D warnings | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | |
| id: changes | |
| with: | |
| token: ${{ github.token }} | |
| filters: | | |
| files: | |
| - 'proto/**' | |
| - 'build_rust/src/main.rs' | |
| - name: Get a GitHub application token | |
| if: steps.changes.outputs.files == 'true' | |
| id: token | |
| uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 | |
| with: | |
| app-id: ${{ vars.SENTRY_INTERNAL_APP_ID }} | |
| private-key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }} | |
| - name: Commit generated Rust bindings | |
| if: steps.changes.outputs.files == 'true' | |
| uses: getsentry/action-github-commit@5972d5f578ad77306063449e718c0c2a6fbc4ae1 # main | |
| with: | |
| message: "chore: Regenerate Rust bindings" | |
| github-token: ${{ steps.token.outputs.token }} | |
| codegen-python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2 | |
| with: | |
| python-version: 3.11 | |
| - name: build python bindings | |
| run: | | |
| pip install -r requirements.txt | |
| make build-py | |
| - name: run python tests/examples | |
| run: | | |
| make test-py |