Skip to content

Commit a3ca2cb

Browse files
committed
ci: codegen in the pipeline
1 parent 867d1fb commit a3ca2cb

9 files changed

Lines changed: 12 additions & 1187 deletions

File tree

.github/workflows/functional-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Install dependencies
3636
run: npm ci --no-audit
3737

38+
- name: Generate code
39+
run: npm run codegen
40+
3841
- name: Build project
3942
run: npm run build --if-present
4043

.github/workflows/nodejs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: Install dependencies
2020
run: npm ci --no-audit
2121

22+
- name: Generate code
23+
run: npm run codegen
24+
2225
- name: Run linting
2326
run: npm run lint --if-present
2427

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: "22"
13+
node-version: '22'
1414
- run: npm ci
15+
- run: npm run codegen
1516
- run: npm run build:release
1617
- uses: JS-DevTools/npm-publish@v3
1718
with:
1819
token: ${{ secrets.GITHUB_TOKEN }}
19-
registry: "https://npm.pkg.github.com"
20+
registry: 'https://npm.pkg.github.com'
2021
access: restricted

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ dist/
3131
.env
3232

3333
.venv
34+
35+
src/generated

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"build": "tsc -p tsconfig.json",
5151
"build:watch": "tsc -w -p tsconfig.json",
5252
"build:release": "npm run clean && tsc -p tsconfig.release.json",
53-
"codegen": "npx protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=client_grpc1:./src/generated --proto_path=./athena-protobufs ./athena-protobufs/athena/**.proto",
53+
"codegen": "mkdir -p src/generated && npx protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=client_grpc1:./src/generated --proto_path=./athena-protobufs ./athena-protobufs/athena/**.proto",
5454
"lint": "eslint .",
5555
"lint:all": "npm run lint && npm run prettier:check && npx tsc --noEmit",
5656
"precommit:setup": "echo 'To install pre-commit hooks, run: uv tool install pre-commit && uvx pre-commit install'",

src/generated/athena/athena.grpc-client.ts

Lines changed: 0 additions & 120 deletions
This file was deleted.

src/generated/athena/athena.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)