Skip to content

Adding Slither to CI - #22

Merged
pedrommaiaa merged 6 commits into
Rari-Capital:developmentfrom
pedrommaiaa:development
May 19, 2022
Merged

Adding Slither to CI#22
pedrommaiaa merged 6 commits into
Rari-Capital:developmentfrom
pedrommaiaa:development

Conversation

@pedrommaiaa

Copy link
Copy Markdown
Member

WIP #20

Slither and a Github code scanning integration were added to ci.yml.

Slither is currently failing with error:ERROR:CryticCompile:Solidity version not found: No solc version set.

@pedrommaiaa

Copy link
Copy Markdown
Member Author

Apparently slither-action@v0.1.1 doesn't work with Foundry, will change to slither-action@main, as described here.

@pedrommaiaa

Copy link
Copy Markdown
Member Author

Slither now returns the following: crytic_compile.platform.exceptions.InvalidCompilation: Could not find the cache/solidity-files-cache.json file.If you are using 'cache = true' in foundry's config file, please remove it.

cache is already set to false in foundry.toml, will be investigating the issue.

@pedrommaiaa

Copy link
Copy Markdown
Member Author

It's an error with forge, add an issue here.

@zerosnacks

Copy link
Copy Markdown
Contributor

@pedrommaiaa thanks for looking into this!

@zerosnacks

Copy link
Copy Markdown
Contributor

I noticed Foundry is planning to integrate it in their template, could be a good reference: foundry-rs/forge-template#49

@pedrommaiaa

Copy link
Copy Markdown
Member Author

Let's keep an eye on both PRs, should work after they are both solved/merged.

@pedrommaiaa
pedrommaiaa merged commit 429f115 into Rari-Capital:development May 19, 2022
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.

2 participants