2021-01-14 00:08:22 +01:00
|
|
|
name: Test markdownlint-cli2-action
|
2021-01-13 07:19:56 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2021-01-16 05:44:36 +01:00
|
|
|
test-script:
|
|
|
|
name: Run test script
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-23 23:00:03 +02:00
|
|
|
- uses: actions/setup-node@v2
|
2021-01-16 05:44:36 +01:00
|
|
|
- run: npm install --no-package-lock
|
|
|
|
- run: npm run test
|
2021-01-14 00:08:22 +01:00
|
|
|
no-globs:
|
|
|
|
name: No globs (README.md, no errors)
|
2021-01-13 07:19:56 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-14 00:08:22 +01:00
|
|
|
- uses: ./
|
|
|
|
one-glob:
|
|
|
|
name: One glob (test/errors.md, errors)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
2021-01-13 23:29:36 +01:00
|
|
|
with:
|
2021-01-13 23:50:05 +01:00
|
|
|
globs: test/errors.md
|
2021-01-14 00:08:22 +01:00
|
|
|
two-globs:
|
|
|
|
name: Two globs (README.md and test/errors.md, errors)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
2021-01-13 23:50:05 +01:00
|
|
|
with:
|
|
|
|
globs: |
|
|
|
|
*.md
|
2021-01-14 00:08:22 +01:00
|
|
|
test/*
|