-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #651 from liquity/fix_coverage
Fix coverage
- Loading branch information
Showing
105 changed files
with
197 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,6 @@ jobs: | |
NODE_OPTIONS: --max-old-space-size=4096 | ||
|
||
coverage: | ||
if: false | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
|
@@ -136,61 +135,54 @@ jobs: | |
- name: Install lcov | ||
run: sudo apt-get -y install lcov | ||
|
||
#- name: Filter out tests from coverage | ||
# run: | | ||
# lcov --remove lcov_foundry.info -o lcov_foundry.info 'src/test/*' | ||
|
||
# Hardhat | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".node-version" | ||
cache: "pnpm" | ||
cache-dependency-path: "pnpm-lock.yaml" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: harhdat coverage | ||
run: pnpm coverage | ||
continue-on-error: true | ||
timeout-minutes: 30 | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=8192 | ||
# - name: Install pnpm | ||
# uses: pnpm/[email protected] | ||
# with: | ||
# version: 8 | ||
|
||
# - name: Install Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version-file: ".node-version" | ||
# cache: "pnpm" | ||
# cache-dependency-path: "pnpm-lock.yaml" | ||
|
||
# - name: Install dependencies | ||
# run: pnpm install --frozen-lockfile | ||
|
||
# - name: harhdat coverage | ||
# run: pnpm coverage | ||
# continue-on-error: true | ||
# timeout-minutes: 30 | ||
# env: | ||
# NODE_OPTIONS: --max-old-space-size=8192 | ||
|
||
# Merge | ||
- name: ls | ||
run: | | ||
ls && ls coverage | ||
- name: Remove path from contract names in Hardhat | ||
run: | | ||
sed -i "s/SF:.*src/SF:src/g" coverage/lcov.info | ||
- name: Merge coverage reports | ||
# - name: Remove path from contract names in Hardhat | ||
# run: | | ||
# sed -i "s/SF:.*src/SF:src/g" coverage/lcov.info | ||
|
||
# - name: Merge coverage reports | ||
# run: | | ||
# lcov \ | ||
# --rc lcov_branch_coverage=1 \ | ||
# --add-tracefile lcov_foundry.info \ | ||
# --add-tracefile coverage/lcov.info \ | ||
# --output-file lcov_merged.info | ||
|
||
# Instead of merge | ||
- name: Rename coverage file | ||
run: | | ||
lcov \ | ||
--rc lcov_branch_coverage=1 \ | ||
--add-tracefile lcov_foundry.info \ | ||
--add-tracefile coverage/lcov.info \ | ||
--output-file lcov_merged.info | ||
mv lcov_foundry.info lcov_merged.info | ||
# Filter | ||
- name: Filter out tests from coverage | ||
- name: Filter out from coverage | ||
run: | | ||
lcov --remove lcov_merged.info -o lcov_merged.info \ | ||
'src/test/*' \ | ||
'src/TestContracts/*' \ | ||
'src/OldTestContracts/*' \ | ||
'src/Dependencies/*' \ | ||
'src/Interfaces/*' \ | ||
'src/Types/*' \ | ||
'src/scripts/*' \ | ||
'src/MultiTroveGetter.sol' \ | ||
'src/deployment.sol' | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...TestContracts/AddRemoveManagersTester.sol → ...TestContracts/AddRemoveManagersTester.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.