File tree Expand file tree Collapse file tree 2 files changed +45
-45
lines changed Expand file tree Collapse file tree 2 files changed +45
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : [ "main" ]
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-24.04
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ submodules : true
15
+
16
+ - name : Use Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 22
20
+ cache : ' npm'
21
+
22
+ - name : Install buf
23
+ run : |
24
+ wget -O buf "https://github.com/bufbuild/buf/releases/download/v1.16.0/buf-$(uname -s)-$(uname -m)"
25
+ chmod +x buf
26
+ sudo mv buf /usr/local/bin
27
+ buf --version
28
+
29
+ - name : Install dependencies
30
+ run : npm install
31
+
32
+ - name : Generate code (.proto -> .ts)
33
+ run : npm run codegen
34
+
35
+ - name : Ensure schemas are up-to-date
36
+ run : |
37
+ CHANGES_IN_REPO=$(git status --porcelain)
38
+ if [[ -n "$CHANGES_IN_REPO" ]]; then
39
+ echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
40
+ git status && git --no-pager diff
41
+ exit 1
42
+ fi
43
+
44
+ - name : Build (.ts -> .js/.d.ts)
45
+ run : npm run build
You can’t perform that action at this time.
0 commit comments