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-06-13 10:38:23 +02:00
|
|
|
node_version: [8, 10, 12, 13]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-06-24 11:39:48 +02:00
|
|
|
- uses: actions/checkout@v2.3.1
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
2020-06-24 18:09:13 +02:00
|
|
|
uses: actions/setup-node@v2.0.0
|
2019-10-01 22:08:40 +02:00
|
|
|
with:
|
|
|
|
node_version: ${{ matrix.node_version }}
|
|
|
|
- name: Install
|
|
|
|
run: yarn install --pure-lockfile
|
|
|
|
- name: Build
|
|
|
|
run: yarn code:build
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Test
|
|
|
|
run: yarn test
|