Skip to content

Commit 1919ae8

Browse files
committed
ci: add build test github action
1 parent 739ea4d commit 1919ae8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['**']
8+
9+
jobs:
10+
build_and_test:
11+
runs-on: ubuntu-latest
12+
name: Run tests & Build
13+
strategy:
14+
matrix:
15+
node-version: [14.x, 16.x, 18.x]
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'yarn'
24+
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
27+
28+
- name: Build
29+
run: yarn build

0 commit comments

Comments
 (0)