mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-17 10:44:23 +08:00
Checkout before npm install.
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -8,18 +8,17 @@ jobs:
|
|||||||
markdown-lint:
|
markdown-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: sudo gem install mdl
|
run: sudo gem install mdl
|
||||||
- name: Lint markdown files
|
- name: Lint markdown files
|
||||||
run: mdl . -r ~MD036,~MD024,~MD004,~MD029
|
run: mdl . -r ~MD036,~MD024,~MD004,~MD029
|
||||||
- run: pip install -r requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
- run: mkdocs build --strict
|
- run: mkdocs build --strict
|
||||||
- run: npm install
|
|
||||||
- run: node .github/manual_lint.js
|
- run: node .github/manual_lint.js
|
||||||
# Suppress 036 Emphasis used instead of a header
|
# Suppress 036 Emphasis used instead of a header
|
||||||
# Suppress 024 Multiple headers with the same content
|
# Suppress 024 Multiple headers with the same content
|
||||||
|
|||||||
Reference in New Issue
Block a user