mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
34 lines
764 B
YAML
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
|