Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GHA workflows #230

Merged
merged 6 commits into from
Apr 27, 2022
Merged

Update GHA workflows #230

merged 6 commits into from
Apr 27, 2022

Conversation

michalinacienciala
Copy link
Contributor

@michalinacienciala michalinacienciala commented Apr 27, 2022

In this PR we're introducing various changes to the GH Actions workflows:

  • Remove @keep-network/ecdsa files before etherscan verification on testnet
  • Change pre-fixes of jobs in yearn.yml and typescript.yml
  • Expand NPM workflow triggers

Similar changes in other projects:
keep-network/keep-core#2957
keep-network/coverage-pools#211

In order for the `etherscan-verify` plugin not to pick up wrong files
for verification we have to remove contracts of the dependent projects
stored in the `node_modules`. We've been doing that for
`@keep-network/tbtc`, but recently a new dependency was added, to
`@keep-network/ecdsa` and we need to remove its files as well.
We're trying to use a specific naming convention for the GH Actions jobs
- we want each job to be prefixed with the key word suggesting the area
of code affected by the job. We do that mainly because this allows us to
have more control over the settings of required jobs for merging PR.
We want toi publish the new NPM package tagged with `development` every
time changes affecting contracts get merged to `main`. We already
trigger the workflow when changes are applied in
- "solidity/contracts/**"
- "solidity/package.json"
- "solidity/yarn.lock"
but it also makes sense to trigger the workflow when there are changes
in
- "solidity/deploy/**"
- "solidity/hardhat.config.ts"
as they also can affect the content of the exported package with the
contracts.
@michalinacienciala
Copy link
Contributor Author

@nkuba, we'll need to change the branch protection rules for this one, as we change here the names of the jobs that are marked as required.

.github/workflows/yearn.yml Outdated Show resolved Hide resolved
.github/workflows/typescript.yml Outdated Show resolved Hide resolved
@nkuba nkuba enabled auto-merge April 27, 2022 11:12
@nkuba nkuba merged commit c61d43b into main Apr 27, 2022
@nkuba nkuba deleted the update-gha-workflows branch April 27, 2022 12:01
@pdyraga pdyraga added this to the solidity/v1.0.0 milestone Jan 31, 2023
@pdyraga pdyraga added the ⛓️ solidity Solidity contracts label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛓️ solidity Solidity contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants