Skip to content

Commit

Permalink
fix: test action
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 7, 2024
1 parent 928dfbf commit 058a238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/foundry-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
ls -l
cd ..
cp cache/gas.json cache/gas.backup.json || :
cp cache/lcov.json cache/lcov.backup.json || :
cp cache/lcov.info cache/lcov.backup.info || :
# required
- name: Build
Expand All @@ -52,15 +52,14 @@ jobs:
- name: Code coverage
run: forge coverage --fuzz-runs 1 --report lcov --no-match-coverage "(scripts|tests|deployments|mocks)"

# most toolings expect json, but foundry can only generate the raw .info atm
# move file to cache folder
- name: Lcov transform
run: npx -y lcov-parse ./lcov.info > cache/lcov.json
run: mv lcov.info cache/lcov.info

- uses: ArtiomTr/jest-coverage-report-action@v2
if: steps.cache.outputs.cache-matched-key != ''
- uses: romeovs/[email protected]
with:
coverage-file: ./cache/lcov.json
base-coverage-file: ./cache/lcov.backup.json
lcov-file: ./cache/lcov.info
lcov-base: ./cache/lcov.backup.info

- name: Cache Save
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
Expand Down
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

0 comments on commit 058a238

Please sign in to comment.