From 0a042f830567e41b1dfe9b9b78aec60e46fc8d2d Mon Sep 17 00:00:00 2001 From: prsabahrami Date: Wed, 11 Sep 2024 19:39:09 -0400 Subject: [PATCH 1/3] added coverage yml --- .github/workflows/coverage.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..7306247 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,22 @@ +name: coverage + +on: [push] +jobs: + test: + name: coverage + runs-on: ubuntu-latest + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true \ No newline at end of file From 04c5ff7fed46a4ec795622de4468e2de52d697bc Mon Sep 17 00:00:00 2001 From: prsabahrami Date: Thu, 12 Sep 2024 10:41:26 -0400 Subject: [PATCH 2/3] Empty commit to trigger coverage From 34ad17b60aff3ee866bb77db7003f1b5a1d85f15 Mon Sep 17 00:00:00 2001 From: Parsa Bahraminejad Date: Thu, 12 Sep 2024 10:47:38 -0400 Subject: [PATCH 3/3] Update coverage.yml --- .github/workflows/coverage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7306247..62dc202 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,4 +19,5 @@ jobs: - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: - fail_ci_if_error: true \ No newline at end of file + token: ${{secrets.CODECOV_TOKEN}} + fail_ci_if_error: true