826e748629
* Prepare CI for merge queues * Fix syntax SNAFUs
32 lines
699 B
YAML
32 lines
699 B
YAML
name: linkcheck
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- unstable
|
|
pull_request:
|
|
paths:
|
|
- 'book/**'
|
|
merge_group:
|
|
|
|
jobs:
|
|
linkcheck:
|
|
name: Check broken links
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Create docker network
|
|
run: docker network create book
|
|
|
|
- name: Run mdbook server
|
|
run: docker run -v ${{ github.workspace }}/book:/book --network book --name book -p 3000:3000 -d peaceiris/mdbook:v0.4.20-rust serve --hostname 0.0.0.0
|
|
|
|
- name: Print logs
|
|
run: docker logs book
|
|
|
|
- name: Run linkcheck
|
|
run: docker run --network book tennox/linkcheck:latest book:3000
|