-
Notifications
You must be signed in to change notification settings - Fork 451
55 lines (52 loc) · 1.11 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 16
- 18
- 20
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm run test-cover
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node }}
parallel: true
- name: Test sharedb-mongo
run: scripts/test-sharedb-mongo.sh
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Submit coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true