Skip to content

Commit aeac2c8

Browse files
committed
chore: Add tests workflow
1 parent f265633 commit aeac2c8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
ci:
7+
name: 'Run Tests'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Cache npm dependencies
14+
uses: actions/cache@v2
15+
with:
16+
path: node_modules
17+
key: npm-${{ hashFiles('package-lock.json') }}
18+
19+
- name: Install Modules
20+
run: npm install
21+
22+
- name: Run Tests
23+
run: npm test

0 commit comments

Comments
 (0)