Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
2.3 kB ยท 77 lines
YAML
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778name: Proto Generated Files Checkon: push: branches: - "main" paths: - "packages/proto/**" pull_request: branches: [main] types: [opened, synchronize, reopened, labeled, unlabeled] paths: - "packages/proto/**"
permissions: contents: read
jobs: proto-check: name: ๐ Proto generated files up to date runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: โฌ๏ธ Checkout repo uses: actions/checkout@v6 with: # breaking check resolves --against against the PR base commit fetch-depth: 0
- name: Set up pnpm uses: pnpm/action-setup@v6
- name: โ Setup node uses: actions/setup-node@v6 with: node-version: 24.12.0 cache: "pnpm"
- name: ๐ฆ Setup Deno uses: denoland/setup-deno@v2 with: deno-version: 2.9.7
- name: ๐น Setup Go uses: actions/setup-go@v5 with: go-version: "stable"
- name: ๐ฅ Install protoc-gen-connect-openapi run: go install github.com/sudorandom/protoc-gen-connect-openapi@v0.25.5
- name: ๐ฅ Download deps run: pnpm install
- name: ๐งน Lint api protos working-directory: ./packages/proto run: pnpm buf:lint:api
- name: ๐ Breaking change check if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') working-directory: ./packages/proto run: pnpm exec buf breaking api --against "../../.git#ref=${{ github.event.pull_request.base.sha }},subdir=packages/proto/api"
- name: ๐ Regenerate proto files working-directory: ./packages/proto run: | pnpm buf:ts pnpm buf:openapi
- name: ๐ Check for uncommitted changes run: | if [ -n "$(git status --porcelain packages/proto/gen/)" ]; then echo "::error::Proto generated files are out of date. Run 'pnpm buf:ts && pnpm buf:openapi' in packages/proto and commit the changes." git diff --stat packages/proto/gen/ git diff packages/proto/gen/ exit 1 fi echo "Proto generated files are up to date."