From 06e93ec0b419a03900a508a821660fbb42738611 Mon Sep 17 00:00:00 2001 From: Nick Hynes Date: Tue, 14 Jul 2020 00:04:40 +0000 Subject: [PATCH] Add codecov to CI --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec01df3..5a71b2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,17 +15,20 @@ jobs: override: true components: rustfmt, clippy - - uses: actions-rs/cargo@v1 + - name: Rustfmt + uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - - uses: actions-rs/cargo@v1 + - name: Clippy + uses: actions-rs/cargo@v1 with: command: clippy args: --all-features --profile test -- -D warnings - - uses: actions-rs/cargo@v1 + - name: Test + uses: actions-rs/cargo@v1 with: command: test args: --all-features @@ -41,7 +44,27 @@ jobs: toolchain: nightly override: true - - uses: actions-rs/cargo@v1 + - name: Build (release) + uses: actions-rs/cargo@v1 with: command: build args: --all-features --release + + codecov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + + - uses: actions-rs/tarpaulin@v0.1 + with: + args: '--all-features' + + - uses: codecov/codecov-action@v1 + with: + token: ${{secrets.CODECOV_TOKEN}}