-
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
ci-tests #9
ci-tests #9
Conversation
Good! Seems like it is working. I'll re-run the test once |
- name: cargo fmt | ||
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: cargo test --locked | ||
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 | ||
with: | ||
command: test | ||
|
||
- name: cargo clippy --locked | ||
uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # @v1.0.7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --locked --all-targets -- -D warnings |
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.
where is cargo check/build --release
?
Also eventually we will want to also test compilation with other feature flags i.e. --features = runtime-benchmarks
, but that can be added 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.
cargo test
compiles code in std
so it is not sufficient to test release compilation
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.
where is cargo check/build --release?
- for cargo check: clippy itself runs cargo check afaik: https://github.com/rust-lang/rust-clippy/blob/c154754b74577906c5d55d57f7daeff02d6a33e7/src/main.rs#L59
- for cargo build: I thought we will have a separate workflow for releases
add components to toolchain cargo fmt adding components specifically
bbbc515
to
4820a92
Compare
I closed the PR, since I couldn't find a reliable way to progress on the issue. Might test on my own, did not want to spam you further with notifications |
This PR is providing a template for running the most important cargo commands in our CI-test.
We can use this CI as a condition in our PRs, so even if we forget to run
cargo clippy
for example, github won't :)I've configured it, so that it will only run the test in ubuntu machines, but not on windows and macos. I thought running on all 3 major OS for each run would be an overkill.
If we want to run the test on macos and windows, I've added a dispatch option, we can manually dispatch this test on macos and windows.