1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-10 20:13:09 +00:00

ci: Use prettier

This commit is contained in:
Edmund Miller 2022-03-17 18:32:45 -05:00
parent c42ab624c2
commit 58da86d729
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -1,18 +1,22 @@
name: Markdown linting
# This workflow is triggered on pushes and PRs to the repository.
on: [push, pull_request]
name: Code Linting
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Markdown:
runs-on: ubuntu-18.04
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
- name: Install markdownlint
run: |
npm install -g markdownlint-cli
- name: Run Markdownlint
run: |
markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.github/markdownlint.yml
- name: Check out repository
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v2
- name: Install Prettier
run: npm install -g prettier
- name: Run Prettier --check
run: prettier --check ${GITHUB_WORKSPACE}