2019-11-20 01:10:34 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-03-19 01:55:03 +01:00
|
|
|
- uses: actions/checkout@v2
|
2021-03-27 21:10:10 +01:00
|
|
|
|
2019-11-20 01:10:34 +01:00
|
|
|
- uses: actions/setup-node@v1
|
2021-03-27 21:10:10 +01:00
|
|
|
with:
|
2021-09-30 16:12:48 +02:00
|
|
|
node-version: 14.0.0
|
2021-03-27 21:10:10 +01:00
|
|
|
|
2021-03-19 01:55:03 +01:00
|
|
|
- name: Install Dependencies
|
|
|
|
uses: bahmutov/npm-install@v1
|
2021-03-27 21:10:10 +01:00
|
|
|
|
2021-03-19 01:55:03 +01:00
|
|
|
- run: 'npm run lint'
|
2019-11-20 01:10:34 +01:00
|
|
|
|
|
|
|
Tests:
|
|
|
|
needs: [Lint]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-09-30 16:12:48 +02:00
|
|
|
node-version: [14.0.0]
|
2019-11-20 01:10:34 +01:00
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
|
|
|
|
steps:
|
2021-03-27 21:10:10 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2019-11-20 01:10:34 +01:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-03-27 21:10:10 +01:00
|
|
|
|
2021-03-19 01:55:03 +01:00
|
|
|
- name: Install Dependencies
|
|
|
|
uses: bahmutov/npm-install@v1
|
2021-03-27 21:10:10 +01:00
|
|
|
|
2019-11-20 01:10:34 +01:00
|
|
|
- run: npm run test:ci
|
|
|
|
env:
|
|
|
|
CI: true
|