-
Notifications
You must be signed in to change notification settings - Fork 168
[Stellar] Add rust ci compilation #594
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Eric Lau <[email protected]>
…contracts-wizard into use-stellar-scaffold-cli-upgrade
…contracts-wizard into add-rust-ci-compilation
…-wizard into add-rust-ci-compilation
d9dbf4b
to
ed05184
Compare
3052877
to
2e380ad
Compare
2e380ad
to
f6988bc
Compare
# id: get-scaffold-sha | ||
# run: | | ||
# echo "sha=$(git ls-remote https://github.com/ahalabs/scaffold-stellar HEAD | cut -f1)" >> $GITHUB_OUTPUT | ||
echo "sha=ebf79b8a57ad1b51a46162afd98ca05c648085fe" >> $GITHUB_OUTPUT |
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.
was this a debug thing?
Didn't spend much time on it, thought asking it would be more efficient. I saw Are they embedded into I think cargo tests happen here: Just wanted to double check 👍 |
const asyncExec = promisify(exec); | ||
|
||
export const runCargoTest = async (t: ExecutionContext, temporaryFolder: string) => { | ||
const result = await asyncExec(`cd "${temporaryFolder}" && RUSTFLAGS="-D warnings" cargo test`); |
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.
const result = await asyncExec(`cd "${temporaryFolder}" && RUSTFLAGS="-D warnings" cargo test`); | |
const result = await asyncExec(`cd "${temporaryFolder}" && cargo test`); |
we can make the compilation test pass by ignoring the warnings for the moment and we work on getting rid of them in another PR.
Summary
Add compilation tests
Description