Skip to content

Commit

Permalink
ci: use yarn in CI instead of directly calling markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Nov 10, 2022
1 parent ba69983 commit 0b8db81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- run: markdownlint content/**/*.md --ignore node_modules
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install node modules
run: yarn
- name: Lint files
run: yarn lint

# Build job
build:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- uses: xt0rted/markdownlint-problem-matcher@v1
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- run: markdownlint content/**/*.md --ignore node_modules
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install node modules
run: yarn
- name: Lint files
run: yarn lint

build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0b8db81

Please sign in to comment.