This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
Merge pull request #12 from articulate/docs/deprecate #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: shellcheck entrypoint.sh | |
- uses: ./ | |
with: | |
ignore: test | |
test-fail: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: lint | |
continue-on-error: true | |
uses: ./ | |
with: | |
files: test/fail.md | |
annotations: false | |
- run: test "${{ steps.lint.outcome }}" == "failure" | |
test-config: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
with: | |
files: test/fail.md | |
config: test/.markdownlint.json | |
test-fix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
with: | |
files: test/fix.md | |
fix: true | |
- run: test "$(md5sum test/fix.md)" == "d38a4c066f4c6e80a0409e23f68226bf test/fix.md" |