update tests

This commit is contained in:
Simon Gardling
2022-04-20 19:50:32 -04:00
parent 9f63d8abe3
commit 2cd1088625
4 changed files with 2340 additions and 49 deletions

View File

@@ -3,25 +3,6 @@ on: [push, pull_request]
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
@@ -29,44 +10,22 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install cargo-all-features
uses: actions-rs/cargo@v1
with:
command: install cargo-all-features
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
command: test-all-features
# fails CI because criterion needs two versions of autocfg
#cargo-deny:

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
/target
Cargo.lock
/pkg
/tmp
/assets.tar.zst

2329
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -67,3 +67,7 @@ wasm-bindgen = { version = "0.2.80", default-features = false, features = [
] }
web-sys = "0.3.57"
tracing-wasm = "0.2.1"
[package.metadata.cargo-all-features]
skip_optional_dependencies = true #don't test optional dependencies, only features