-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (48 loc) · 1.13 KB
/
test.yml
File metadata and controls
51 lines (48 loc) · 1.13 KB
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
name: Test CI
on: [push, pull_request]
env:
DEBUG: 1
NODE_ENV: development
jobs:
test:
name: Test
strategy:
max-parallel: 4
fail-fast: true
matrix:
node: ['12', '10']
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Node Modules
run: npm install
- name: Validate JSON
shell: bash
run: npm run lint:json
- name: Validate JavaScript
shell: bash
run: npm run lint:js
- name: Lint Code
shell: bash
run: npm run lint:code
- name: Lint Docs
shell: bash
run: npm run lint:doc
- name: Lint Dependencies
shell: bash
run: npm run lint:deps
- name: Check JSDoc Types
shell: bash
run: npm run lint:types
- name: Check Typescript Types
shell: bash
run: npm run lint:ts
# - name: Test Code
# shell: bash
# run: npm test