Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 85 additions & 52 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,92 @@
name: CI

on:
push:
branches:
- main
- release-*
pull_request: {}
push:
branches:
- main
- release-*
pull_request: {}

env:
NODE_VERSION: "25"
NODE_VERSION: "25"

jobs:
lint:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci

- name: Lint
run: npm run lint

test:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci

- name: test
run: npm test

build:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Build
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci
- run: npm run clean
- run: npm run build
protobuf-check:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci

# Update this version when ts-proto in package.json is updated
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "33.0"

- name: Generate Protobuf Files
run: npm run protoc-gen

- name: Check for changes in src
run: |
if [[ -n $(git status --porcelain src) ]]; then
echo "Error: Protobuf generation caused changes in src directory"
echo "Please run 'npm run protoc-gen' locally and commit the changes"
git --no-pager status src
git --no-pager diff src
exit 1
fi
echo "No changes detected in src directory"

lint:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci

- name: Lint
run: npm run lint

test:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci

- name: test
run: npm test

build:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Build
uses: actions/setup-node@v6
with:
node-version: ${{env.NODE_VERSION}}
- run: npm ci
- run: npm run clean
- run: npm run build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
],
"scripts": {
"clean": "scripts/clean.sh",
"protoc-gen": "scripts/protoc-gen.sh",
"build": "npx tsc",
"pack": "npm pack",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion src/proto/google/protobuf/duration.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 14 additions & 11 deletions src/proto/google/protobuf/struct.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading