0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-25 15:46:25 +01:00
markdownlint-cli2-action/.github/workflows/test.yml

41 lines
843 B
YAML
Raw Normal View History

name: Test markdownlint-cli2-action
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
no-globs:
name: No globs (README.md, no errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
one-glob:
name: One glob (test/errors.md, errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
globs: test/errors.md
two-globs:
name: Two globs (README.md and test/errors.md, errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
globs: |
*.md
test/*