Skip to content

CI

CI #1196

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 2 * * 5'
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'
jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Lint
run: npm run lint
env:
# avoid fail on warnings
CI: false
- name: Test
run: npm test
- name: Coverage
run: npm test -- --coverage
- name: Build
run: npm run build
env:
# avoid fail on warnings
CI: false