Skip to content

Commit 7f77a5e

Browse files
committed
👷 Add test GitHub Action
1 parent 8cfec77 commit 7f77a5e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/test.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "test"
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: "14.x"
14+
15+
- uses: actions/cache@v2
16+
with:
17+
path: '**/node_modules'
18+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
19+
20+
- name: Run test
21+
run: |
22+
npm i
23+
npm run lint

0 commit comments

Comments
 (0)