-
Notifications
You must be signed in to change notification settings - Fork 1
chore: pull protos from BSR module instead of vendoring #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
26d649b
067214f
f8a6fae
4acb471
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Generate protos from BSR | ||
| run: bun run generate | ||
|
|
||
| - name: Check generated code is in sync | ||
| run: | | ||
| git add -N src/generated/ | ||
| if ! git diff --exit-code src/generated/; then | ||
| echo "::error::src/generated/ is out of sync with buf.build/photon-hq/whatsapp — run 'bun run generate' and commit the result." | ||
| exit 1 | ||
| fi | ||
|
invisicat marked this conversation as resolved.
|
||
|
|
||
| - name: Type-check | ||
| run: bun run check | ||
|
|
||
| - name: Lint | ||
| run: bun run lint | ||
|
|
||
| - name: Test | ||
| run: bun test | ||
|
|
||
| - name: Build | ||
| run: bun run build | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| version: v2 | ||
| inputs: | ||
| # Pinned BSR commit (main @ spectrum-whatsapp-business 17e7e9c). | ||
| # To pick up schema changes: update the ref, run `bun run generate`, commit both. | ||
| - module: buf.build/photon-hq/whatsapp:b218d3336d65421c8b215137797db344 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stale generated files evade sync checkMedium Severity
Additional Locations (1)Reviewed by Cursor Bugbot for commit 4acb471. Configure here. |
||
| plugins: | ||
| - local: protoc-gen-ts_proto | ||
| out: src/generated | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,7 @@ | |
| } | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "proto" | ||
| "dist" | ||
| ], | ||
| "engines": { | ||
| "node": ">=18" | ||
|
|
||
This file was deleted.
This file was deleted.


Uh oh!
There was an error while loading. Please reload this page.