Skip to content

Commit c5e854c

Browse files
authored
Add auto-test workflow for CI (#842)
1 parent dbb4871 commit c5e854c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/auto-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 🧪 Auto Test
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # all branches
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Use Node.js 16.x
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16.x'
20+
21+
- name: Install dependencies
22+
run: npm install --no-package-lock
23+
24+
- name: Run tests
25+
run: npm run test

0 commit comments

Comments
 (0)