Skip to content

CI

CI #394

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, 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
- name: install dependencies
run: yarn install --frozen-lockfile
- name: build
run: yarn build
- name: test
run: yarn test