Skip to content

Commit

Permalink
CI cargo test added (rust-lang#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordshashank authored Mar 22, 2024
1 parent 17abfa7 commit f16a006
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 4 additions & 0 deletions tests/hello-world/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[package]
name = "hello_world"

[dependencies]
3 changes: 3 additions & 0 deletions tests/hello-world/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit f16a006

Please sign in to comment.