Skip to content

Commit

Permalink
Merge pull request #4 from OriginProtocol/clement/fix-CI
Browse files Browse the repository at this point in the history
Fix CI.
  • Loading branch information
naddison36 authored Jul 19, 2024
2 parents 12a0509 + df381df commit 4397dbf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [opened, reopened, synchronize]
push:
branches:
- 'master'
- 'main'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
26 changes: 17 additions & 9 deletions script/deploy/DeployManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,28 @@ contract DeployManager is Script {
deployedContracts[name] = addr;
}

// Sleep 0.5s so that the previous write is complete
vm.sleep(500);
vm.writeJson(networkDeployments, deploymentsFilePath, contractsKey);
console.log("> Deployment addresses stored.");

/**
* Write Execution History
*/
currentExecutions = vm.serializeUint(executionsKey, deployScript.DEPLOY_NAME(), block.timestamp);

// Sleep 0.5s so that the previous write is complete
vm.sleep(500);
vm.writeJson(currentExecutions, deploymentsFilePath, executionsKey);
console.log("> Deploy script execution complete.");
// Write to file instead of using writeJson to avoid "EOF while parsing a value at line 1 column 0" error.
vm.writeFile(
getForkDeploymentFilePath(),
string(
abi.encodePacked(
'{ "',
chainIdStr,
'": { "executions": ',
currentExecutions,
', "contracts": ',
networkDeployments,
"}}"
)
)
);

console.log("> Deployment addresses stored and Deploy script execution complete.");
}
}

Expand Down
2 changes: 2 additions & 0 deletions test/OethLiquidityManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ contract OethLiquidityManagerTest is AbstractForkTest {

vault.addWithdrawalQueueLiquidity();

skip(10 minutes);

// Claim the ETH.
oethARM.claimWithdrawal(requestId);

Expand Down

0 comments on commit 4397dbf

Please sign in to comment.