Skip to content

Commit 24045bc

Browse files
committed
ci: add regression tests for #3037 and #3039
1 parent d9f049b commit 24045bc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/bindgen.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,27 @@ jobs:
201201
./mdbook build book
202202
./mdbook test book
203203
204+
# FIXME(pvdrz): this should be done inside `bindgen-test` instead
205+
test-no-headers:
206+
runs-on: ubuntu-latest
207+
steps:
208+
- uses: actions/checkout@v4
209+
210+
- name: Test `--help`
211+
run: cargo run -- --help
212+
213+
- name: Test `--version`
214+
run: cargo run -- --version
215+
216+
- name: Test `--generate-shell-completions`
217+
run: cargo run -- --generate-shell-completions=bash
218+
204219
# One job that "summarizes" the success state of this pipeline. This can then
205220
# be added to branch protection, rather than having to add each job
206221
# separately.
207222
success:
208223
runs-on: ubuntu-latest
209-
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book]
224+
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book, test-no-headers]
210225
# GitHub branch protection is exceedingly silly and treats "jobs skipped
211226
# because a dependency failed" as success. So we have to do some
212227
# contortions to ensure the job fails if any of its dependencies fails.

0 commit comments

Comments
 (0)