-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 871 Bytes
/
static.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
name: "Unit Testing"
on: [pull_request]
jobs:
Static:
name: "Static checks, Node Version ${{ matrix.node_version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version:
- 16
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Cache Node
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Run static
run: |
npm install
npm run lint
- name: Run unit testing
run: |
npm run test:unit:ci