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

WEB3-113: chore: CI coverage of examples #229

Merged
merged 25 commits into from
Sep 10, 2024
Merged

WEB3-113: chore: CI coverage of examples #229

merged 25 commits into from
Sep 10, 2024

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Sep 10, 2024

Inspired by #227 this PR runs cargo fmt cargo sort cargo clippy cargo test and forge tests for all examples in the CI.
It uses a bash script to find all examples under the example folder instead of manually listing them.

It also addresses all the found linter warnings.

closes WEB3-109
closes Web3-110

@github-actions github-actions bot changed the title chore: CI coverage of examples WEB3-113: chore: CI coverage of examples Sep 10, 2024
@Wollac Wollac self-assigned this Sep 10, 2024
Copy link
Contributor

@nategraf nategraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together

RISC0_SKIP_BUILD: true
- run: sccache --show-stats

test-risc0-ethereum:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why suffix test with risc0-ethereum, given that we are in the risc0-ethereum repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it only runs cargo test on the main workspace and not examples etc. There is a separate job for that.

@Wollac Wollac enabled auto-merge (squash) September 10, 2024 23:27
@Wollac Wollac merged commit f8eef25 into main Sep 10, 2024
10 checks passed
@Wollac Wollac deleted the chore/ci-check branch September 10, 2024 23:36
Wollac added a commit that referenced this pull request Oct 7, 2024
Inspired by #227 this PR runs `cargo fmt` `cargo sort` `cargo clippy`
`cargo test` and `forge tests` for all examples in the CI.
It uses a bash script to find all examples under the `example` folder
instead of manually listing them.

It also addresses all the found linter warnings.

closes WEB3-109
closes Web3-110
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