Skip to content

Commit dd6a320

Browse files
Add build workflow
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 265f43b commit dd6a320

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: build app
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build-test:
8+
strategy:
9+
matrix:
10+
node-version:
11+
- 18
12+
- 20
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up node-${{ matrix.node-version }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Install dependencies and build the code
21+
run: |
22+
npm install
23+
npm run build

0 commit comments

Comments
 (0)