diff options
| author | Shashank Trivedi <100513286+lordshashank@users.noreply.github.com> | 2024-03-23 01:02:34 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 15:32:34 -0400 |
| commit | f16a006c233f408ae9be5f7ccc1dd2bbee467b68 (patch) | |
| tree | 66ff52ee92bb7577c2a8737aec627f5593f2ca16 | |
| parent | 17abfa7041d143e30f74039e76245ec5acc56a56 (diff) | |
| download | rust-f16a006c233f408ae9be5f7ccc1dd2bbee467b68.tar.gz rust-f16a006c233f408ae9be5f7ccc1dd2bbee467b68.zip | |
CI cargo test added (#6)
| -rw-r--r-- | .github/workflows/ci.yml | 9 | ||||
| -rw-r--r-- | tests/hello-world/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/hello-world/src/main.rs | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44730bab4ed..9b2c7ab5e30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,14 @@ jobs: ./y.sh prepare --only-libcore ./y.sh build cargo test - ./y.sh clean all + + - name: Run y.sh cargo build + run: | + ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml + + - name: Clean + run: | + ./y.sh clean all - name: Prepare dependencies run: | diff --git a/tests/hello-world/Cargo.toml b/tests/hello-world/Cargo.toml new file mode 100644 index 00000000000..a3b6813443f --- /dev/null +++ b/tests/hello-world/Cargo.toml @@ -0,0 +1,4 @@ +[package] +name = "hello_world" + +[dependencies] \ No newline at end of file diff --git a/tests/hello-world/src/main.rs b/tests/hello-world/src/main.rs new file mode 100644 index 00000000000..fbedd920525 --- /dev/null +++ b/tests/hello-world/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} \ No newline at end of file |
