+20
-24
Diff
round #2
+8
-8
.tangled/workflows/build.yml
+8
-8
.tangled/workflows/build.yml
···
1
1
when:
2
-
- event: ["pull_request"]
2
+
- event: ["push", "pull_request"]
3
3
branch: ["main"]
4
4
5
-
engine:
6
-
- nixery
5
+
engine: "nixery"
7
6
8
7
dependencies:
9
-
- cargo
10
-
- rustup
8
+
nixpkgs:
9
+
- cargo
10
+
- rustup
11
11
12
12
steps:
13
13
- name: Checkout repository
14
14
uses: actions/checkout@v6
15
15
- name: Setup Rust
16
-
run: |
16
+
command: |
17
17
rustup set profile minimal
18
18
rustup toolchain install stable
19
19
rustup override set stable
20
20
- name: Print environment info
21
-
run: |
21
+
command: |
22
22
cargo --version
23
23
rustup --version
24
24
- name: Build
25
-
run: cargo build --verbose --all-features
25
+
command: cargo build --verbose --all-features
+2
-3
.tangled/workflows/codeqa-clippy.yml
+2
-3
.tangled/workflows/codeqa-clippy.yml
+2
-3
.tangled/workflows/codeqa-rustfmt.yml
+2
-3
.tangled/workflows/codeqa-rustfmt.yml
+2
-3
.tangled/workflows/test-miri.yml
+2
-3
.tangled/workflows/test-miri.yml
+2
-3
.tangled/workflows/test.yml
+2
-3
.tangled/workflows/test.yml
+4
-4
crates/my_crate/src/lib.rs
+4
-4
crates/my_crate/src/lib.rs
···
19
19
///
20
20
/// assert_eq!(greet("Bob"), String::from("Hello Bob!"));
21
21
/// ```
22
-
pub fn greet(name: &str) -> String {
22
+
pub fn greeting(name: &str) -> String {
23
23
format!("Hello {}!", name)
24
24
}
25
25
26
26
#[cfg(test)]
27
27
mod tests {
28
-
use crate::greet;
28
+
use crate::greeting;
29
29
30
30
#[test]
31
31
fn greet_bob() {
32
-
assert_eq!(greet("Bob"), String::from("Hello Bob!"));
32
+
assert_eq!(greeting("Bob"), String::from("Hello Bob!"));
33
33
}
34
34
35
35
#[test]
36
36
fn greet_the_world() {
37
-
assert_eq!(greet("World"), String::from("Hello World!"));
37
+
assert_eq!(greeting("World"), String::from("Hello World!"));
38
38
}
39
39
}
History
3 rounds
0 comments
samanthanguyen.me
submitted
#2
expand 0 comments
closed without merging
samanthanguyen.me
submitted
#1
expand 0 comments
samanthanguyen.me
submitted
#0
1 commit
expand
collapse
test: test out spindle CI