2019-10-01 15:08:40 -05:00
|
|
|
name: CI
|
|
|
|
|
2019-10-03 04:18:43 -05:00
|
|
|
on: [push, pull_request]
|
2019-10-01 15:08:40 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: Node ${{ matrix.node_version }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-06-13 03:38:23 -05:00
|
|
|
node_version: [8, 10, 12, 13]
|
2019-10-01 15:08:40 -05:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
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
|