Skip to content

Commit

Permalink
Merge pull request #17 from lexara-prime-ai/dev
Browse files Browse the repository at this point in the history
Updated code-coverage config
  • Loading branch information
irfanghat authored Jul 11, 2024
2 parents 7754bac + 2722051 commit 49f5213
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
- name: Code Coverage Summary
uses: irongut/[email protected]
- 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: '*'
- 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

0 comments on commit 49f5213

Please sign in to comment.