Skip to content

Commit

Permalink
fix: Fix package scripts and remove combined-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Feb 20, 2024
1 parent effd361 commit 85877bf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 48 deletions.
1 change: 0 additions & 1 deletion .github/workflows/certora-gho.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
jobs:
verify:
runs-on: ubuntu-latest
# group: larger

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: push
jobs:
build:
runs-on:
group: larger
group: ubuntu-latest
env:
ALCHEMY_KEY: '${{secrets.ALCHEMY_KEY}}'
strategy:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Clone the repository and run the following command to install dependencies:

```sh
npm i
forge i
```

If you need to interact with GHO in the Goerli testnet, provide your Alchemy API key and mnemonic in the `.env` file:
Expand Down
34 changes: 0 additions & 34 deletions combined-coverage.sh

This file was deleted.

24 changes: 15 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,30 @@
},
"scripts": {
"hardhat": "hardhat",
"clean": "hardhat clean",
"clean": "npm run clean:hh & npm run clean:forge",
"clean:hh": "hardhat clean",
"clean:forge": "forge clean",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"prepare": "husky install",
"compile": "rm -rf ./artifacts ./cache ./types && SKIP_LOAD=true hardhat compile",
"test": ". ./setup-test-env.sh && hardhat test ./test/*.ts",
"forge-test": "forge test -vvv --no-match-test 'skip'",
"test-goerli:fork": ". ./setup-test-env.sh && FORK=goerli npm run test --no-compile",
"test-goerli:fork:skip-deploy": ". ./setup-test-env.sh && FORK=goerli SKIP_DEPLOY=true npm run test",
"compile": "npm run compile:hh && npm run compile:forge",
"compile:hh": "rm -rf ./artifacts ./cache ./types && SKIP_LOAD=true hardhat compile",
"compile:forge": "forge build --force",
"test": "npm run test:hh && npm run test:forge",
"test:hh": ". ./setup-test-env.sh && hardhat test ./test/*.ts",
"test:forge": "forge test -vvv --no-match-test 'skip'",
"test-goerli:fork": ". ./setup-test-env.sh && FORK=goerli npm run test:hh --no-compile",
"test-goerli:fork:skip-deploy": ". ./setup-test-env.sh && FORK=goerli SKIP_DEPLOY=true npm run test:hh",
"test:stkAave": ". ./setup-test-env.sh && hardhat test ./test/__setup.test.ts ./test/stkAave-upgrade.test.ts",
"coverage": ". ./setup-test-env.sh && hardhat coverage",
"combined-coverage": ". ./setup-test-env.sh && ./combined-coverage.sh",
"coverage:hh": ". ./setup-test-env.sh && hardhat coverage",
"coverage:forge": "forge coverage --report summary",
"coverage:forge:report": "forge coverage --report lcov && lcov --remove lcov.info \"*test/*\" \"*script/*\" \"*node_modules/*\" --output-file lcov.info --rc lcov_branch_coverage=1 && genhtml lcov.info --branch-coverage --output-dir coverage",
"deploy-testnet": ". ./setup-test-env.sh && hardhat deploy-and-setup",
"deploy-testnet:goerli": "HARDHAT_NETWORK=goerli npm run deploy-testnet",
"deploy-testnet:goerli:fork": "FORK=goerli npm run deploy-testnet",
"deploy-testnet:sepolia": "HARDHAT_NETWORK=sepolia npm run deploy-testnet",
"deploy-testnet:sepolia:fork": "FORK=sepolia npm run deploy-testnet",
"ci:clean": "rm -rf ./artifacts ./cache ./types ./temp-artifacts",
"ci:clean": "npm run clean && rm -rf ./artifacts ./cache ./types ./cache_forge",
"ci:test": "npm run test"
},
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions setup-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
# This bash script ensures a clean repository
# and loads environment variables for testing and deploying GHO source code.

# export NODE_OPTIONS="--max_old_space_size=32768"
export NODE_OPTIONS="--max_old_space_size=16384"

set -e

echo "[BASH] Setting up testnet enviroment"
Expand All @@ -16,7 +14,7 @@ if [ ! "$COVERAGE" = true ]; then
# remove hardhat and artifacts cache
npm run ci:clean

# compile @aave/core-v3 contracts
# compile contracts
npm run compile
else
echo "[BASH] Skipping compilation to keep coverage artifacts"
Expand Down

0 comments on commit 85877bf

Please sign in to comment.