Skip to content

Commit 16e0df6

Browse files
committed
ci: add test stage to CI
1 parent ab60acb commit 16e0df6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test and build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/[email protected]
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
22+
- name: Check Yarn Version
23+
run: yarn --version
24+
25+
- name: Install dependencies
26+
run: yarn
27+
28+
- name: Run tests
29+
run: yarn test
30+
31+
- name: Build
32+
run: |
33+
yarn build

0 commit comments

Comments
 (0)