-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 800 Bytes
/
ci.yml
File metadata and controls
50 lines (39 loc) · 800 Bytes
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
name: CI
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10.x
- 12.x
- 14.x
name: Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v6.1.0
name: Installing Node.js v${{ matrix.node }}
with:
node-version: ${{ matrix.node }}
- name: Installing dependencies
run: |
npm install
- name: Lint the code
run: |
npm run lint
- name: Compile TypeScript
run: |
npm run build
- name: Execute tests
run: |
npm run test