2024-03-27 14:21:15 +00:00
|
|
|
steps:
|
2023-04-25 20:36:47 +00:00
|
|
|
prepare_repo:
|
|
|
|
image: alpine:3
|
|
|
|
commands:
|
|
|
|
- apk add git
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update --recursive --remote
|
2024-03-27 14:21:15 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-06-08 14:47:14 +00:00
|
|
|
|
2023-04-15 13:11:44 +00:00
|
|
|
check_formatting:
|
2023-05-31 10:00:05 +00:00
|
|
|
image: tmknom/prettier
|
2021-10-25 14:00:45 +00:00
|
|
|
commands:
|
2023-04-15 13:11:44 +00:00
|
|
|
- prettier -c src
|
2024-03-27 14:21:15 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-04-21 14:40:14 +00:00
|
|
|
|
2023-06-08 14:47:14 +00:00
|
|
|
check_typos:
|
|
|
|
image: alpine:3
|
|
|
|
commands:
|
|
|
|
- wget -O typos.tar.gz https://github.com/crate-ci/typos/releases/download/v1.14.12/typos-v1.14.12-x86_64-unknown-linux-musl.tar.gz
|
|
|
|
- tar -xzf typos.tar.gz
|
2023-06-21 10:51:08 +00:00
|
|
|
- ./typos src
|
2024-03-27 14:21:15 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-06-08 14:47:14 +00:00
|
|
|
|
2023-03-24 20:45:52 +00:00
|
|
|
check_documentation_build:
|
2023-06-21 10:51:08 +00:00
|
|
|
image: alpine:3
|
2021-01-18 16:08:20 +00:00
|
|
|
commands:
|
2023-07-26 11:06:00 +00:00
|
|
|
- apk add bash curl git
|
2023-06-21 10:51:08 +00:00
|
|
|
- wget -O mdbook.tar.gz https://github.com/rust-lang/mdBook/releases/download/v0.4.30/mdbook-v0.4.30-x86_64-unknown-linux-musl.tar.gz
|
|
|
|
- tar -xzf mdbook.tar.gz
|
|
|
|
- ls -la mdbook
|
2023-07-26 11:06:00 +00:00
|
|
|
- ./update-includes.sh
|
2023-06-21 10:51:08 +00:00
|
|
|
- ./mdbook build .
|
2024-03-27 14:21:15 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-04-25 13:23:11 +00:00
|
|
|
|
|
|
|
dead_links:
|
2024-07-02 09:16:19 +00:00
|
|
|
image: becheran/mlc:0.18.0
|
2023-04-25 13:23:11 +00:00
|
|
|
commands:
|
2023-06-01 20:29:59 +00:00
|
|
|
- mlc src/en --offline --ignore-links "*localhost*" --ignore-links "*127.0.0.1*" --ignore-links /api
|
2024-03-27 14:21:15 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|