Skip to content

Commit 465a2ff

Browse files
authored
add github checker workflow (#9)
* [Add] add github checker workflow && add yarn-error.log ignore * [Chore::workflow] delete useless code in checker.yml
1 parent 1fbdd54 commit 465a2ff

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/checker.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: checker
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: cache deps
12+
uses: actions/cache@v2
13+
with:
14+
path: "**/node_modules"
15+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
16+
17+
- name: yarn install
18+
run: yarn install
19+
20+
- name: yarn test
21+
run: yarn test

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ dist
77
packages/**/dist
88

99
# NPM
10-
package-lock.json
10+
package-lock.json
11+
12+
# yarn
13+
yarn-error.log

0 commit comments

Comments
 (0)