2019-10-01 22:08:40 +02:00
|
|
|
name: CI
|
|
|
|
|
2019-10-03 11:18:43 +02:00
|
|
|
on: [push, pull_request]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: Node ${{ matrix.node_version }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-04-21 21:44:12 +02:00
|
|
|
node_version: [12, 14, 15, 16]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-10-03 14:53:41 +02:00
|
|
|
- uses: actions/checkout@v2.3.3
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
2021-03-03 07:56:12 +01:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2019-10-01 22:08:40 +02:00
|
|
|
with:
|
2021-03-26 18:04:19 +01:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Install
|
2020-10-11 10:06:21 -07:00
|
|
|
run: yarn install --immutable
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Build
|
|
|
|
run: yarn code:build
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Test
|
|
|
|
run: yarn test
|