-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 807 Bytes
/
nodejs.yml
File metadata and controls
37 lines (35 loc) · 807 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: Node Blog CI
on:
push:
branches-ignore:
- release
pull_request:
branches-ignore:
- release
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@master
- name: Launch MongoDB
uses: wbari/start-mongoDB@master
with:
mongoDBVersion: 5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn install
yarn run build
yarn run test:cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@master
with:
token: ${{secrets.CODECOV_TOKEN}}
env:
CI: true