-
Notifications
You must be signed in to change notification settings - Fork 22
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
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
46fd2f0
check all examples in CI
Wollac e07a1f4
cleanup
Wollac 14a433c
fix script path
Wollac c9ac0bd
fix script path
Wollac 70df47e
fix script path
Wollac 0b2e431
fix script path
Wollac 18c53fc
fix linter warnings
Wollac 93e1a6b
sort examples before checking
Wollac 2727370
check all workspaces
Wollac 748e4f3
cargo test examples
Wollac dcd52e0
fix linter warnings
Wollac 62b2995
minor code cleanups
Wollac 0eafaff
separate jobs
Wollac 35f7739
sort dependencies
Wollac 88467f5
check out recursive
Wollac 4a32081
fix script
Wollac b5c138e
run forge test
Wollac 4f70f5b
install foundry
Wollac dd55c24
clear sccache
Wollac 46770ca
cargo clean
Wollac 79b191e
remove tmp
Wollac f013b5e
move env
Wollac aead99d
remove fail-fast without matrix
Wollac c0e61c8
Merge branch 'main' into chore/ci-check
Wollac f35cfc0
Merge branch 'main' into chore/ci-check
Wollac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
fmt_sort(){ | ||
while read path; do | ||
printf "Project: %s\n" "$path" | ||
cargo fmt --all --check --manifest-path "$path" | ||
(cd "${path%/*}"; cargo sort --workspace --check) | ||
done | ||
} | ||
|
||
grep -rl --include "Cargo.toml" '\[workspace\]' | sort -u | fmt_sort |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
clippy(){ | ||
while read path; do | ||
printf "Project: %s\n" "$path" | ||
cargo clippy --workspace --all-targets --all-features --manifest-path "$path" | ||
done | ||
} | ||
|
||
grep -rl --include "Cargo.toml" '\[workspace\]' | sort -u | clippy |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
build_test(){ | ||
while read path; do | ||
printf "Project: %s\n" "$path" | ||
cargo build --workspace --all-features --manifest-path "$path" | ||
cargo test --workspace --all-features --manifest-path "$path" | ||
done | ||
} | ||
|
||
find . -maxdepth 2 -mindepth 2 -name 'Cargo.toml' | sort -u | build_test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
fmt(){ | ||
while read path; do | ||
printf "Project: %s\n" "$path" | ||
(cd "${path%/*}"; forge fmt --check) | ||
done | ||
} | ||
|
||
find . -maxdepth 2 -mindepth 2 -name 'foundry.toml' | sort -u | fmt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
test(){ | ||
while read path; do | ||
printf "Project: %s\n" "$path" | ||
(cd "${path%/*}"; forge test -vvvv) | ||
done | ||
} | ||
|
||
find . -maxdepth 2 -mindepth 2 -name 'foundry.toml' | sort -u | test |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[toolchain] | ||
channel = "1.79" | ||
channel = "stable" | ||
components = ["clippy", "rustfmt", "rust-src"] | ||
targets = [] | ||
profile = "minimal" | ||
profile = "minimal" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[toolchain] | ||
channel = "stable" | ||
components = ["rustfmt", "rust-src"] | ||
components = ["clippy", "rustfmt", "rust-src"] | ||
profile = "minimal" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "core" | ||
name = "token-stats-core" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "methods" | ||
name = "token-stats-methods" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[toolchain] | ||
channel = "stable" | ||
components = ["rustfmt", "rust-src"] | ||
profile = "minimal" | ||
components = ["clippy", "rustfmt", "rust-src"] | ||
profile = "minimal" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why suffix
test
withrisc0-ethereum
, given that we are in therisc0-ethereum
repo?There was a problem hiding this comment.
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.