-
-
Notifications
You must be signed in to change notification settings - Fork 2
84 lines (69 loc) · 2 KB
/
Copy pathci.yml
File metadata and controls
84 lines (69 loc) · 2 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: ci
on:
pull_request:
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@v4.1.1
with:
ref: ${{ github.ref }}
- uses: bufbuild/buf-setup-action@v1.34.0
- 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-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install protoc
uses: arduino/setup-protoc@v3
- name: Build Rust bindings
run: |
make build-rust
- uses: dorny/paths-filter@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@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@main
with:
message: "chore: Regenerate Rust bindings"
github-token: ${{ steps.token.outputs.token }}
codegen-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@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