-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): use PR addrs to compare layouts (#139)
* fix(ci): use PR addrs to compare layouts * fix(ci): use PR addrs to compare layouts The `compare-layouts.yml` workflow runs via `workflow_run` and is thus triggered in the context of the base branch. It is, therefore, reading potentially outdated information from the `deployedContract.json` file. To avoid that, we use an intermediate artifact generated from the PR, which contains the updated addresses, during the step that fetches the storage layouts from Etherscan. Simpler validation, such as all required addresses are present and correctly formatted, is retained in the parent CI to permit quicker short circuit upon receiving invalid data. * feat: combine extract layout CI into one No need to have separate job for base and non-base branches * fix(ci): update matrix * fix(ci): use correct key for artifact * fix(ci): remove not working restore * fix(ci): checkout recursive module * fix(ci): exclude unnecessary file from artifact * fix(ci): rename layout to `.proposed.json` * remove superfluous line * fix(ci): drop `validatedContracts.json` correctly * trigger a test CI run * fix(ci): use correct keys for validated contracts * fix(ci): use the original names for layouts To avoid unnecessary failure and workarounds, use `.compiled.json` where possible * fix: add `set -e`
- Loading branch information
1 parent
a887167
commit 02e51e3
Showing
2 changed files
with
102 additions
and
69 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
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