Skip to content

Commit bcc54f7

Browse files
committed
ci: add regression tests for rust-lang#3037 and rust-lang#3039
1 parent 2e154e7 commit bcc54f7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/bindgen.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,26 @@ 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+
- uses: actions/checkout@v4
208+
209+
- name: Test `--help`
210+
run: cargo run -- --help
211+
212+
- name: Test `--version`
213+
run: cargo run -- --version
214+
215+
- name: Test `--generate-shell-completions`
216+
run: cargo run -- --generate-shell-completions=bash
217+
204218
# One job that "summarizes" the success state of this pipeline. This can then
205219
# be added to branch protection, rather than having to add each job
206220
# separately.
207221
success:
208222
runs-on: ubuntu-latest
209-
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book]
223+
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book, test-no-headers]
210224
# GitHub branch protection is exceedingly silly and treats "jobs skipped
211225
# because a dependency failed" as success. So we have to do some
212226
# contortions to ensure the job fails if any of its dependencies fails.

0 commit comments

Comments
 (0)