mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
test: Fix ui tests
This commit is contained in:
parent
4e9e9514e1
commit
216837d688
2 changed files with 16 additions and 1 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -106,6 +106,21 @@ jobs:
|
|||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Check
|
||||
run: make check-${{ matrix.features }}
|
||||
ui:
|
||||
name: UI Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.54.0 # MSRV
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: UI Tests
|
||||
run: cargo test --test derive_ui --features derive
|
||||
docs:
|
||||
name: Docs
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
#[test]
|
||||
fn ui() {
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/ui/*.rs");
|
||||
t.compile_fail("tests/derive_ui/*.rs");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue