Skip to content

Commit a10e253

Browse files
committed
Workflow to run npm test
1 parent 510aea1 commit a10e253

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Tests"
2+
on:
3+
wokflow_dispatch:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Checkout the Repo
12+
- uses: actions/checkout@v2
13+
14+
# Install Node 14
15+
- name: Setup Node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 14
19+
20+
# Install dependencies
21+
- run: npm install
22+
23+
# Setup config
24+
- run: cp config.json.docker config.json
25+
26+
# Setup local database and local user
27+
- run: tools/devSetup.js
28+
29+
# Run tests
30+
- run: npm test

0 commit comments

Comments
 (0)