-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.3 KB
/
test.yaml
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
45
46
47
48
49
50
51
52
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set-up Node.js
uses: actions/setup-node@v1
- run: npm install
- name: 'Lint'
run: npm run eslint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
mongodb-version: [4.0, 4.2]
steps:
- uses: actions/checkout@v1
- name: Set-up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set-up MongoDB ${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- name: 'Test'
run: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set-up Node.js
uses: actions/setup-node@v1
- name: Set-up MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: '4.2'
- run: npm install
- name: 'Cover'
run: npm run cover
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}