-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 838 Bytes
/
node.js.yml
File metadata and controls
37 lines (35 loc) · 838 Bytes
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
name: st_main_server CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
strategy:
matrix:
node-version: [12.x, 14.x, 15.x]
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install codecov
run: npm install codecov -g
- name: install dependencies
run: npm install
- name: run tests
run: npm run nyc
- name: run codecov
run: npm run codecov
- name: publish to codecov
run: codecov -f test/report/*.json