Skip to content

Commit

Permalink
test: Mark ui tests as ignored and run them with latest stable on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Jul 31, 2024
1 parent a9d5044 commit 9bacb47
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 22 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,45 @@ jobs:
path: |
examples/contracts/**/schema/*.json
# Errors differ between Rust versions. We test only the latest output.
test_ui:
name: ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- build: macOS
os: macOS-latest
- build: Windows
os: windows-latest
defaults:
run:
shell: bash
working-directory: ./
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Test project
run: cargo test --locked -- --ignored

coverage:
name: Code coverage
runs-on: ubuntu-latest
Expand Down
56 changes: 34 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sylvia/tests/ui.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#[test]
#[ignore]
fn ui() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/**/*.rs");
Expand Down

0 comments on commit 9bacb47

Please sign in to comment.