diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-20 01:37:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 07:37:28 +0100 |
commit | a9472f8ff15523c13ab7e32592f11a6c51cc14e3 (patch) | |
tree | fcf377272ae09adc490c0311c2f40dc3ec8a004b /.github | |
parent | 717683d1c39d2fe85d1cc3f5223e1f4cf43f1900 (diff) |
Fix Markdown files with Prettier and check in CI (#21972)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint-md.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/lint-md.yml b/.github/workflows/lint-md.yml new file mode 100644 index 000000000..6f76dd60c --- /dev/null +++ b/.github/workflows/lint-md.yml @@ -0,0 +1,40 @@ +name: Markdown Linting +on: + push: + branches-ignore: + - 'dependabot/**' + paths: + - '.github/workflows/lint-md.yml' + - '.prettier*' + - '**/*.md' + - '!AUTHORS.md' + - 'package.json' + - 'yarn.lock' + + pull_request: + paths: + - '.github/workflows/lint-md.yml' + - '.prettier*' + - '**/*.md' + - '!AUTHORS.md' + - 'package.json' + - 'yarn.lock' + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + cache: yarn + + - name: Install all yarn packages + run: yarn --frozen-lockfile + + - name: Prettier + run: yarn prettier --check "**/*.md" |