Skip to content

Commit 483e779

Browse files
committed
added actions to run test
1 parent 18d3f4a commit 483e779

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Node
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 17
16+
- name: Cache Yarn
17+
uses: actions/cache@v2
18+
with:
19+
path: '**/node_modules'
20+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
21+
restore-keys: |
22+
${{ runner.os }}-yarn-
23+
- run: yarn install --frozen-lockfile
24+
- run: yarn test
25+
env:
26+
CI: true

0 commit comments

Comments
 (0)