Skip to content

Commit b9af2ef

Browse files
authored
Merge pull request #1 from Code-Hex/add/ci
added actions to run test
2 parents 18d3f4a + 483e779 commit b9af2ef

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)