Skip to content

CI

CI #415

Workflow file for this run

name: CI
on:
pull_request:
push:
# filtering branches here, prevents duplicate builds from pull_request and push
branches:
- master
- 'v*'
# always run CI for tags
tags:
- '*'
# early issue detection, run CI weekly on Sundays
schedule:
- cron: '0 6 * * 0'
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node_version: ['8', '10', '12']
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}
- name: install yarn
run: npm install -g yarn cross-env
- name: install dependencies
run: yarn install --frozen-lockfile
- name: lint
run: yarn lint
- name: test
run: cross-env CI=true yarn test