mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-27 11:08:49 +01:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
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: [ 14, 16, 18 ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Edit .npmrc to avoid setup-node issue with Node 14
|
|
if: ${{ matrix.node-version == '14' }}
|
|
run: perl -i -p -e 's/(ignore-scripts=true)/# $1/' .npmrc && git add .npmrc && git config --global user.name 'User' && git config --global user.email 'user@example.com' && git commit -m 'Edit .npmrc to avoid setup-node issue with Node 14'
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install Dependencies
|
|
run: npm install --no-package-lock
|
|
- name: Run CI Tests
|
|
run: npm run ci
|
|
- name: Install markdownlint-micromark Dependencies
|
|
run: cd micromark && npm install --no-package-lock
|
|
- name: Build markdownlint-micromark
|
|
run: npm run build-micromark
|