-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (53 loc) · 1.54 KB
/
run-tests.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Node.js CI
on: [push, pull_request]
jobs:
unittests:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Run tests
run: |
make test
audit_prod:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Audit production npm packages
run: npx audit-ci --skip-dev --config audit-ci.json
audit_dev:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Audit including devDependencies
# Don't error out on audit warnings about devDependencies
run: npx audit-ci --config audit-ci.json || true
linter:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run linters
run: npm run lint