mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
ci: Use prettier
This commit is contained in:
parent
c42ab624c2
commit
58da86d729
1 changed files with 18 additions and 14 deletions
30
.github/workflows/linting.yml
vendored
30
.github/workflows/linting.yml
vendored
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue