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 #211

Merged
merged 3 commits into from
Apr 27, 2022
Merged

Update GHA workflows #211

merged 3 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:

  • Update slither to the latest version
  • Remove @threshold-network/solidity-contracts files before etherscan verification on testnet
  • Expand NPM workflow triggers

Similar changes in other projects:
keep-network/keep-core#2957
keep-network/tbtc-v2#230

Slither 0.8.3 fixes issues with false validation failures from
crytic/slither#1067
We want to 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
- "contracts/**"
- "package.json"
- "yarn.lock"
but it also makes sense to trigger the workflow when there are changes
in
- "deploy/**"
- "hardhat.config.ts"
as they also can affect the content of the exported package with the
contracts.
…ication

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/keep-core` and `@keep-network/tbtc` but some time ago a
new dependency was added, to `@threshold-network/solidity-contracts` and
we need to remove its files as well.
@nkuba nkuba merged commit 4ce50f0 into main Apr 27, 2022
@nkuba nkuba deleted the update-gha-workflows branch April 27, 2022 11:07
@pdyraga pdyraga added this to the solidity/v2.0.0 milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants