mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-27 21:58:45 +01:00
28 lines
656 B
YAML
28 lines
656 B
YAML
|
name: "CI"
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
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
|