Skip to content

Commit

Permalink
Fix CI Memory Issue (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal committed Jun 29, 2023
1 parent 4487882 commit 51f6d3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
hardhat-network-fork-
- run: yarn test:plugins:integration
env:
NODE_OPTIONS: '--max-old-space-size=4096'
NODE_OPTIONS: '--max-old-space-size=8192'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}

Expand All @@ -79,7 +79,7 @@ jobs:
- run: yarn compile
- run: yarn test:p0
env:
NODE_OPTIONS: '--max-old-space-size=4096'
NODE_OPTIONS: '--max-old-space-size=8192'

p1-tests:
name: 'P1 Tests'
Expand All @@ -94,7 +94,7 @@ jobs:
- run: yarn compile
- run: yarn test:p1
env:
NODE_OPTIONS: '--max-old-space-size=4096'
NODE_OPTIONS: '--max-old-space-size=8192'

scenario-tests:
name: 'Scenario Tests'
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
hardhat-network-fork-
- run: yarn test:extreme:integration
env:
NODE_OPTIONS: '--max-old-space-size=4096'
NODE_OPTIONS: '--max-old-space-size=8192'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}

Expand All @@ -160,6 +160,6 @@ jobs:
- run: yarn compile
- run: yarn test:integration
env:
NODE_OPTIONS: '--max-old-space-size=4096'
NODE_OPTIONS: '--max-old-space-size=8192'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"test:fast": "bash tools/fast-test.sh",
"test:p0": "PROTO_IMPL=0 hardhat test test/*.test.ts",
"test:p1": "PROTO_IMPL=1 hardhat test test/*.test.ts",
"test:plugins": "hardhat test test/{libraries,plugins}/*.test.ts --parallel",
"test:plugins": "hardhat test test/{libraries,plugins}/*.test.ts",
"test:plugins:integration": "PROTO_IMPL=1 FORK=1 hardhat test test/plugins/individual-collateral/**/*.test.ts",
"test:integration": "PROTO_IMPL=1 FORK=1 hardhat test test/integration/**/*.test.ts",
"test:scenario": "PROTO_IMPL=1 hardhat test test/scenario/*.test.ts --parallel",
"test:scenario": "PROTO_IMPL=1 hardhat test test/scenario/*.test.ts",
"test:gas": "yarn test:gas:protocol && yarn test:gas:integration",
"test:gas:protocol": "REPORT_GAS=1 PROTO_IMPL=1 hardhat test test/{libraries,plugins,scenario}/*.test.ts test/*.test.ts",
"test:gas:integration": "FORK=1 REPORT_GAS=1 PROTO_IMPL=1 hardhat test test/integration/**/*.test.ts",
Expand Down

0 comments on commit 51f6d3c

Please sign in to comment.