Skip to content

Commit

Permalink
feat(ci): add evm coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Jan 8, 2024
1 parent e5ddb70 commit 0c68177
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Coverage

on:
pull_request:
branches:
- main

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
report:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: nixbuild/nix-quick-install-action@v22
- uses: hrishikesh-kadam/setup-lcov@v1
- name: Build coverage
run: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#evm-coverage
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: result/lcov.info
minimum-coverage: 90
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
2 changes: 1 addition & 1 deletion evm/evm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
};

evm-coverage =
pkgs.runCommand "evm-coverage.log"
pkgs.runCommand "evm-coverage"
{
buildInputs = [ wrappedForge pkgs.lcov ];
} ''
Expand Down

0 comments on commit 0c68177

Please sign in to comment.