Skip to content

Commit 8f71319

Browse files
committed
chore: run test in ci (#42)
1 parent e399451 commit 8f71319

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ end_of_line = lf
99
insert_final_newline = true
1010
indent_style = space
1111
indent_size = 4
12+
13+
[*.yaml]
14+
indent_size = 2

.github/workflows/ci.yaml

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"scripts": {
88
"lerna": "lerna",
9+
"build": "lerna run build --stream",
910
"test": "jest"
1011
},
1112
"engines": {

0 commit comments

Comments
 (0)