From 60448382c21abf53c5c35c1bfa22c47f39e902b3 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Thu, 17 Oct 2019 04:21:49 -0600 Subject: [PATCH] experimenting with github actions --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fec17ad2..71dcf77e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,17 @@ jobs: steps: - uses: actions/checkout@v1 + # Clippy must be run first, as its lints are only triggered during + # compilation. Put another way: after a successful `cargo build`, `cargo + # clippy` is guaranteed to produce no results. This bug is known upstream: + # https://github.com/rust-lang/rust-clippy/issues/2604. + - name: Clippy + run: cargo clippy -- --all-targets --all-features -- -D warnings + - name: Check formatting + run: cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"') - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Run tests for all features + run: cargo test --verbose -- all-features