Add "command" input to allow invoking -fix and -config commands (fixes #7, fixes #8).

This commit is contained in:
David Anson
2022-07-21 22:24:48 -07:00
parent 4309653070
commit 0820d56e6c
7 changed files with 113 additions and 12 deletions
+35
View File
@@ -38,3 +38,38 @@ jobs:
globs: |
*.md
test/*
command-config:
name: Command = config (test/errors.md, errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
command: config
globs: |
config/.markdownlint.jsonc
test/*
command-config-missing:
name: Command = config (missing configuration file)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
command: config
command-fix:
name: Command = fix (test/errors.md, no errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
command: fix
command-unsupported:
name: Command = unsupported (fails)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
command: unsupported