chore(ci): book lint (#3266)

This commit is contained in:
Alexey Shekhirin
2023-06-20 15:02:43 +01:00
committed by GitHub
parent 236a10e73b
commit 8eeba4dcc8

View File

@ -29,6 +29,24 @@ jobs:
- name: Run tests
run: mdbook test
lint:
runs-on: ubuntu-latest
name: lint
steps:
- uses: actions/checkout@v3
- name: Install mdbook-linkcheck
run: |
mkdir mdbook-linkcheck
curl -sSL -o mdbook-linkcheck.zip https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip
unzip mdbook-linkcheck.zip -d ./mdbook-linkcheck
chmod +x `pwd`/mdbook-linkcheck/mdbook-linkcheck
echo `pwd`/mdbook-linkcheck >> $GITHUB_PATH
- name: Run linkcheck
run: mdbook-linkcheck --standalone
build:
runs-on: ubuntu-latest
steps:
@ -91,7 +109,7 @@ jobs:
# Only deploy if a push to main
if: github.ref_name == 'main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [test, build]
needs: [test, lint, build]
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions: