-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into apply_and_mint_interest_rebase
- Loading branch information
Showing
22 changed files
with
7,200 additions
and
6,965 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 |
---|---|---|
|
@@ -73,20 +73,28 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v3 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
node-version: 16 | ||
version: 8 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
cache-dependency-path: 'contracts/pnpm-lock.yaml' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Test contracts | ||
run: yarn test | ||
run: pnpm test | ||
|
||
coverage: | ||
name: Coverage | ||
|
@@ -125,20 +133,22 @@ jobs: | |
# id: coverage_filter | ||
|
||
# Hardhat | ||
- uses: actions/setup-node@v3 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
cache-dependency-path: "./contracts/yarn.lock" | ||
env: | ||
# Workaround for https://github.com/actions/setup-node/issues/317 | ||
FORCE_COLOR: 0 | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
cache-dependency-path: 'contracts/pnpm-lock.yaml' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
|
||
- name: harhdat coverage | ||
run: yarn coverage | ||
run: pnpm coverage | ||
continue-on-error: true | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=4096 | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
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 |
---|---|---|
|
@@ -19,3 +19,5 @@ node_modules | |
|
||
coverage/ | ||
coverage.json | ||
mochaOutput.json | ||
testMatrix.json |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
// Improve performance by skipping statements and functions. Tool still checks lines of code and branches: | ||
// https://github.com/sc-forks/solidity-coverage/blob/master/docs/advanced.md | ||
//measureStatementCoverage: false, | ||
//measureFunctionCoverage: false, | ||
|
||
skipFiles: [ | ||
"GasPool", | ||
"test/", | ||
"TestContracts/", | ||
"Interfaces/", | ||
"Dependencies/IERC20.sol", | ||
"Dependencies/IERC2612.sol", | ||
"Dependencies/Math.sol", | ||
"Dependencies/Ownable.sol", | ||
"Dependencies/", | ||
"Integrations/" | ||
], | ||
// https://github.com/sc-forks/solidity-coverage/blob/master/docs/advanced.md#skipping-tests | ||
mocha: { | ||
grep: "@skip-on-coverage", // Find everything with this tag | ||
invert: true // Run the grep's inverse set. | ||
}, | ||
contractsDir: "src/", | ||
}; |
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
Oops, something went wrong.