Skip to content

Commit

Permalink
ci: add regression tests for rust-lang#3037 and rust-lang#3039
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Dec 8, 2024
1 parent 2e154e7 commit bcc54f7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,26 @@ jobs:
./mdbook build book
./mdbook test book
# FIXME(pvdrz): this should be done inside `bindgen-test` instead
test-no-headers:
runs-on: ubuntu-latest
- uses: actions/checkout@v4

- name: Test `--help`
run: cargo run -- --help

- name: Test `--version`
run: cargo run -- --version

- name: Test `--generate-shell-completions`
run: cargo run -- --generate-shell-completions=bash

# One job that "summarizes" the success state of this pipeline. This can then
# be added to branch protection, rather than having to add each job
# separately.
success:
runs-on: ubuntu-latest
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book]
needs: [rustfmt-clippy, msrv, minimal, docs, quickchecking, test-expectations, test, check-cfg, test-book, test-no-headers]
# GitHub branch protection is exceedingly silly and treats "jobs skipped
# because a dependency failed" as success. So we have to do some
# contortions to ensure the job fails if any of its dependencies fails.
Expand Down

0 comments on commit bcc54f7

Please sign in to comment.