-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 974 Bytes
/
push.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
name: Generic Node.js CI - Tests and Lint Checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
linter:
name: CI Linter
runs-on: ubuntu-latest
steps:
- name: Checking Out Commits Securely . . .
uses: actions/checkout@v2
- name: Setup Node 16 Environment . . .
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies . . .
working-directory: .
run: npm ci
- name: Run The Linter . . .
run: npm run test:lint
tests:
name: CI Tests
runs-on: ubuntu-latest
steps:
- name: Checking Out Commits Securely . . .
uses: actions/checkout@v2
- name: Setup Node 16 Environment . . .
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies . . .
working-directory: .
run: npm ci
- name: Run The Tests . . .
run: npm run test