Skip to content

Commit f16a006

Browse files
authored
CI cargo test added (#6)
1 parent 17abfa7 commit f16a006

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/ci.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ jobs:
8080
./y.sh prepare --only-libcore
8181
./y.sh build
8282
cargo test
83-
./y.sh clean all
83+
84+
- name: Run y.sh cargo build
85+
run: |
86+
./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
87+
88+
- name: Clean
89+
run: |
90+
./y.sh clean all
8491
8592
- name: Prepare dependencies
8693
run: |

tests/hello-world/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[package]
2+
name = "hello_world"
3+
4+
[dependencies]

tests/hello-world/src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)