-
-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (30 loc) · 740 Bytes
/
CI.yml
File metadata and controls
33 lines (30 loc) · 740 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Start MongoDB LTS
uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: '7.0'
- name: Run tests
run: |
npm install
npm run lint
npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pierreb-devkit/Node