7465fbb4cc
- Add build-binaries workflow for multi-platform binary releases - Rename workflows for conciseness: - demo-render-deploy.yml → demo-deploy.yml - build-and-push-canary-image.yml → build-canary-image.yml - build-and-push-stable-image.yml → build-stable-image.yml - Centralize version config with env variables (GO_VERSION, NODE_VERSION, PNPM_VERSION) - Standardize step names across all workflows - Add concurrency controls to prevent redundant runs - Update Node.js (20→22) and pnpm (9→10) versions to match build-binaries - Improve job names with descriptive labels - Add consistent comments and formatting - Set artifact retention to 60 days for binary builds
41 lines
823 B
YAML
41 lines
823 B
YAML
name: Proto Linter
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "proto/**"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Protos
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup buf
|
|
uses: bufbuild/buf-setup-action@v1
|
|
with:
|
|
github_token: ${{ github.token }}
|
|
|
|
- name: Run buf lint
|
|
uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: proto
|
|
|
|
- name: Check buf format
|
|
run: |
|
|
if [[ $(buf format -d) ]]; then
|
|
echo "❌ Proto files are not formatted. Run 'buf format -w' to fix."
|
|
exit 1
|
|
fi
|