-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (37 loc) · 858 Bytes
/
nodejs.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
# CI for command line NodeJS Applications
name: nodejs
on:
push:
paths:
- '**/**'
- '!**/*.md/**'
defaults:
run:
shell: bash
env:
CI: true
FORCE_COLOR: 2
jobs:
pipeline:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: ['18']
os: ['ubuntu-2020']
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: |
npm install
- uses: codecov/codecov-action@v2
- name: Test
run: npm test -- -u
env:
CODECOV_TOKEN: 6ec88e00-584c-438e-b5a2-c220fc764ee4