markdownlint/.github/workflows/ci.yml
2020-11-06 19:23:08 -08:00

34 lines
764 B
YAML

name: CI
on:
pull_request:
push:
schedule:
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install --no-package-lock
- name: Run All Validations
if: ${{ matrix.node-version == '14.x' }}
run: npm run ci
- name: Run Tests Only
if: ${{ matrix.node-version != '14.x' }}
run: npm run test