on master help sign in
Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI (#2183)

* Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI Note that we run `find . -name bat.1` before we run anything with `--all-features`, because `--all-features` is considered a separate target, and so we will get a different (but identical) `bat.1`. For example, we might have these: ./target/debug/build/bat-218e9538b4996215/out/assets/manual/bat.1 ./target/debug/build/bat-89d6f56802af023f/out/assets/manual/bat.1 By showing the man page earlier, there is only one `bat.1` to pick from. * Use plain `man $(find . -name bat.1)`

commit719248f1c1a2c1c6723b941d3a58cafccf6e3739 authorMartin Nordholts <enselic@gmail.com> dateFri 6 May 2022, 07:33 (5 years ago) parentef3e398
2 files changed+14−2
.github/workflows/CICD.yml+12 doc/release-checklist.md+2−2
.github/workflows/CICD.yml+12
@@ -118,6 +118,18 @@ jobs:
118118 toolchain: stable
119119 default: true
120120 profile: minimal
121+ - name: Print -h
122+ uses: actions-rs/cargo@v1
123+ with:
124+ command: run
125+ args: --locked -- -h
126+ - name: Print --help
127+ uses: actions-rs/cargo@v1
128+ with:
129+ command: run
130+ args: --locked -- --help
131+ - name: Show man page
132+ run: man $(find . -name bat.1)
121133 - name: Check documentation
122134 env:
123135 RUSTDOCFLAGS: -D warnings
doc/release-checklist.md+2−2
@@ -20,8 +20,8 @@
2020
2121## Documentation
2222
23−- [ ] Review the `-h` and `--help` texts
24−- [ ] Review the `man` page (`man $(fd -HIp target/release/build.*out/assets/manual/bat.1) | tee`)
23+- [ ] Review `-h`, `--help`, and the `man` page. All of these are shown in
24+ the output of the CI job called *Documentation*, so look there.
2525
2626## Pre-release checks
2727