-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.01 KB
/
runtests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run tests
on:
push:
branches-ignore:
- production
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
mongodb-version: [3.2, 4.2]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Create server-config.js
run: mv server-config.test.js server-config.js
- name: Start MongoDB
uses: superchargejs/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Populate database
run: node scripts/node/populate.js test/data/*.json && node scripts/node/resolve-lexeme-ids.js
- name: Creating indexes
run: node scripts/node/create-indexes.js
- name: Build glosses collection
run: cd scripts/node && ./run.js update-glosses-collection.js
- name: Run tests
run: npm test