From 6e757a1b95b79b846c99deb0964c56bdea7e5789 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 20 May 2021 03:30:06 +0000 Subject: ci(codecov): setup --- .github/workflows/coverage.yml | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/coverage.yml (limited to '.github/workflows') diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..e1637d6 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,44 @@ +name: Coverage 🛌 + +on: + push: + paths: + - "src/**" + - "Cargo.toml" + pull_request: + paths: + - "src/**" + - "Cargo.toml" + +jobs: + coverage: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-02-20 + components: rustfmt, clippy + override: true + + - name: Tarpaulin ⛺ + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + args: '-- --test-threads 1' + + - name: Upload to Codecov ✈ + uses: codecov/codecov-action@v1.0.2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Archive Coverage Results 🗃 + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml -- cgit v1.2.3