From e22f3791f2c75e575729aea9bef0d9b4c653a025 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Tue, 12 Jan 2021 21:53:22 +0100 Subject: [PATCH] Attempt to extend the CI coverage build to run for all features while trying to be DRY. --- .github/workflows/ci.yml | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03a66106..10e8e00e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: matrix: os: [ubuntu-latest] rust: [stable, 1.45.0, beta] + args: ["", "--all-features"] steps: - name: Checkout repository uses: actions/checkout@v1 @@ -45,8 +46,8 @@ jobs: uses: hecrj/setup-rust-action@v1 with: rust-version: ${{ matrix.rust }} - - run: cargo build --verbose - - run: cargo test --verbose 2>&1 + - run: cargo build --verbose ${{ matrix.args }} + - run: cargo test --verbose ${{ matrix.args }} 2>&1 coverage: name: coverage @@ -56,6 +57,7 @@ jobs: matrix: os: [ubuntu-latest] rust: [stable] + args: ["", "--all-features"] steps: - name: Checkout repository uses: actions/checkout@v1 @@ -64,26 +66,9 @@ jobs: with: rust-version: ${{ matrix.rust }} - run: cargo install cargo-tarpaulin - - run: cargo tarpaulin -v -o Html + - run: cargo tarpaulin -v -o Html ${{ matrix.args }} - name: Archive code coverage results - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: - name: code-coverage-report + name: code-coverage-report ${{ matrix.os }} ${{ matrix.rust }} ${{ matrix.args }} path: tarpaulin-report.html - - allfeatures: - name: allfeatures - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - rust: [stable, 1.45.0, beta] - steps: - - name: Checkout repository - uses: actions/checkout@v1 - - name: Install Rust - uses: hecrj/setup-rust-action@v1 - with: - rust-version: ${{ matrix.rust }} - - run: cargo build --verbose --all-features - - run: cargo test --verbose --all-features 2>&1