2024-05-24 22:45:59 +08:00
|
|
|
name: "CI"
|
|
|
|
|
|
|
|
on:
|
2024-05-24 22:47:14 +08:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-05-24 22:45:59 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2024-05-24 23:00:03 +08:00
|
|
|
formatter:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: dprint/check@v2.2
|
|
|
|
|
2024-05-24 22:45:59 +08:00
|
|
|
check-links:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build book
|
|
|
|
run: |
|
|
|
|
cd book
|
|
|
|
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=.
|
|
|
|
./mdbook build
|
|
|
|
- name: Link Checker
|
|
|
|
uses: lycheeverse/lychee-action@v1
|
|
|
|
with:
|
|
|
|
fail: true
|
|
|
|
args: |
|
|
|
|
--exclude-loopback
|
|
|
|
--require-https
|
|
|
|
--no-progress
|
|
|
|
book/book
|