test: Fix ui tests

This commit is contained in:
Ed Page 2021-12-02 15:57:39 -06:00
parent 4e9e9514e1
commit 216837d688
2 changed files with 16 additions and 1 deletions

View file

@ -106,6 +106,21 @@ jobs:
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: Check - name: Check
run: make check-${{ matrix.features }} 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: docs:
name: Docs name: Docs
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -9,5 +9,5 @@
#[test] #[test]
fn ui() { fn ui() {
let t = trybuild::TestCases::new(); let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/*.rs"); t.compile_fail("tests/derive_ui/*.rs");
} }