From 272205160781a8f65d9fdf3c82ccc177b76bad32 Mon Sep 17 00:00:00 2001 From: lexara-prime-ai Date: Thu, 11 Jul 2024 14:02:38 +0000 Subject: [PATCH] Updated code-coverage config --- .github/workflows/code-coverage.yml | 30 +++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index d923697..a3ed403 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -1,7 +1,25 @@ -- name: Code Coverage Summary - uses: irongut/CodeCoverageSummary@v1.3.0 +- name: Install toolchain + id: toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: x86_64-unknown-linux-musl + override: true + components: llvm-tools-preview - 'on': - push: - branches: [ "master" ] - tags: '*' \ No newline at end of file +- name: Download grcov + run: | + mkdir -p "${HOME}/.local/bin" + curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.10/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin" + echo "$HOME/.local/bin" >> $GITHUB_PATH + +- name: Run xtask coverage + uses: actions-rs/cargo@v1 + with: + command: xtask + args: coverage + +- name: Upload to codecov.io + uses: codecov/codecov-action@v3 + with: + files: coverage/*.lcov \ No newline at end of file