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: