-
Notifications
You must be signed in to change notification settings - Fork 70
35 lines (28 loc) · 888 Bytes
/
CI.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
name: CI
on:
push:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [lts/dubnium, lts/*]
runs-on: ${{ matrix.os }}
# Bash & PowerShell are already installed on GitHub-hosted runners
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
# Latest npm is needed for workspaces capabilities
- name: Install npm latest
run: npm install -g npm
- run: npm ci
- run: npm run format:check
- run: npm run lint:check
- run: npm test