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 name: CI
jobs: 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: test:
name: Test Suite name: Test Suite
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -29,44 +10,22 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install stable toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
override: true override: true
- name: Install cargo-all-features
uses: actions-rs/cargo@v1
with:
command: install cargo-all-features
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test-all-features
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
# fails CI because criterion needs two versions of autocfg # fails CI because criterion needs two versions of autocfg
#cargo-deny: #cargo-deny:

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
/target /target
Cargo.lock
/pkg /pkg
/tmp /tmp
/assets.tar.zst /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" web-sys = "0.3.57"
tracing-wasm = "0.2.1" tracing-wasm = "0.2.1"
[package.metadata.cargo-all-features]
skip_optional_dependencies = true #don't test optional dependencies, only features