mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-24 09:04:19 +02:00
CI: Ensure that usage string is always up to date
This commit is contained in:
parent
6d77483ad5
commit
ee0d32d3de
1 changed files with 24 additions and 0 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
|
@ -67,3 +67,27 @@ jobs:
|
|||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
docs:
|
||||
name: build docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '0.4.4'
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
- name: Ensure that docs can be built
|
||||
run: cd docs && mdbook build
|
||||
- name: Generate usage string
|
||||
run: cargo run -- --help > docs/src/usage-actual.txt
|
||||
- name: Ensure that usage string is up to date
|
||||
run: diff docs/src/usage{,-actual}.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue