From 7ee3ed6fbaf88f63df4b07b38c08ded1927ec22d Mon Sep 17 00:00:00 2001 From: Edgar Date: Fri, 27 Nov 2020 14:29:53 +0100 Subject: [PATCH] speed up gh actions --- .github/workflows/rust.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9d11963..fef1712 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,13 +16,23 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install tarpaulin - run: cargo install cargo-tarpaulin - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - name: Coverage - run: cargo tarpaulin --verbose --all-features --timeout 120 --out Xml + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.16.0' + - name: Upload to codecov.io uses: codecov/codecov-action@v1 + + - name: Archive code coverage results + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml