1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-09-21 06:02:03 +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 name: Code Linting
# This workflow is triggered on pushes and PRs to the repository. on:
on: [push, pull_request] push:
branches: [master]
pull_request:
branches: [master]
jobs: jobs:
Markdown: prettier:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - name: Check out repository
- uses: actions/setup-node@v2 uses: actions/checkout@v2
- name: Install markdownlint
run: |
npm install -g markdownlint-cli
- name: Run Markdownlint
run: |
markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.github/markdownlint.yml
- 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}