Skip to content

chore(billing-platform): Add is_sponsored field to PackageConfig #1067

chore(billing-platform): Add is_sponsored field to PackageConfig

chore(billing-platform): Add is_sponsored field to PackageConfig #1067

Workflow file for this run

name: ci
on:
pull_request:
paths:
- 'proto/**'
- 'buf.yaml'
- 'buf.lock'
- 'buf.gen.yaml'
- 'build_rust/**'
- '.python-version'
- 'devenv/config.ini'
- '.github/workflows/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
python-version-sync:
name: python version sync check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: verify .python-version matches devenv/config.ini
run: |
pv=$(tr -d '[:space:]' < .python-version)
ini=$(awk -F= '/^python *=/ {gsub(/[[:space:]]/,"",$2); print $2; exit}' devenv/config.ini)
if [ "$pv" != "$ini" ]; then
echo "drift: .python-version=$pv devenv/config.ini=$ini" >&2
exit 1
fi
echo "ok: python pinned to $pv in both files"
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version-file: .python-version
- name: build python bindings
run: |
pip install -r requirements.txt
make build-py
- name: run python tests/examples
run: |
make test-py