diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b7ec752..3ea991a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,33 +1,44 @@ -name: Rust +name: rust # Trigger the workflow on push or pull request on: [push, pull_request] jobs: - rustfmt: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v2 - with: - command: fmt - args: --all -- --check + ci: + runs-on: ubuntu-latest - clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - run: rustup component add clippy - - uses: actions-rs/cargo@v2 - with: - command: clippy - # args: -- -D warnings + strategy: + matrix: + rust: + - stable + - beta + - nightly + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt, clippy + + - uses: actions-rs/cargo@v1 + with: + command: build + args: --all-features + + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features + + - uses: actions-rs/cargo@v1 + with: + command: doc + args: --all-features + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check diff --git a/.travis.yml b/.travis.yml index 982e71a..e276f81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,6 @@ script: after_success: | # this does require a -Z flag for Doctests, which is unstable! if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then - cargo tarpaulin --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml + cargo tarpaulin -f --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml bash <(curl -s https://codecov.io/bash) fi diff --git a/deny.toml b/deny.toml index 880fd2a..407794b 100644 --- a/deny.toml +++ b/deny.toml @@ -40,7 +40,7 @@ vulnerability = "deny" # The lint level for unmaintained crates unmaintained = "warn" # The lint level for crates that have been yanked from their source registry -yanked = "warn" +# yanked = "warn" # The lint level for crates with security notices. Note that as of # 2019-12-17 there are no security notice advisories in # https://github.com/rustsec/advisory-db