Add CI workflow for backend and extension

Swadhin Biswas committed 7 months ago
4f9dc6b
1 parent fb70262
commit 4f9dc6b
1 file changed
+31 -0
Showing 1 changed file+31-0
▼.github/workflows/ci.yml
+31-0
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: '20'
20
+
21
+ - name: Install and Build Backend
22
+ run: |
23
+ cd opengrammar/backend
24
+ npm install
25
+ npm run build
26
+
27
+ - name: Install and Build Extension
28
+ run: |
29
+ cd opengrammar/extension
30
+ npm install
31
+ npm run build
0
32