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:
|
2020-10-20 18:37:08 +02:00
|
|
|
node_version: [10, 12, 13, 14, 15]
|
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 }}
|
2020-07-31 07:55:04 +02:00
|
|
|
uses: actions/setup-node@v2.1.1
|
2019-10-01 22:08:40 +02:00
|
|
|
with:
|
|
|
|
node_version: ${{ matrix.node_version }}
|
|
|
|
- name: Install
|
2020-10-11 19:06:21 +02: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
|