tangled
alpha
login
or
join now
samanthanguyen.me
/
rust
0
fork
atom
repository template for Rust projects
0
fork
atom
overview
issues
pulls
pipelines
ci: simplify test CI workflow
samanthanguyen.me
2 months ago
f6fdbaaf
5942328e
3/4
build.yml
success
21s
codeqa-clippy.yml
success
21s
codeqa-rustfmt.yml
success
21s
test.yml
failed
21s
+4
-14
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
test.yml
+4
-14
.tangled/workflows/test.yml
reviewed
···
7
7
dependencies:
8
8
nixpkgs:
9
9
- cargo
10
10
-
- cargo-llvm-cov
11
10
- rustup
12
11
13
12
steps:
14
14
-
# `--doctests` flag for `cargo llvm-cov` requires nightly channel
15
15
-
# see: https://github.com/taiki-e/cargo-llvm-cov/issues/2
16
13
- name: Setup Rust
17
14
command: |
18
15
rustup set profile minimal
19
19
-
rustup toolchain install nightly
20
20
-
rustup override set nightly
21
21
-
rustup component add llvm-tools-preview
16
16
+
rustup toolchain install stable
17
17
+
rustup override set stable
22
18
- name: Print environment info
23
19
command: |
24
20
rustc --version --verbose
25
21
cargo --version
26
22
rustup --version
27
27
-
- name: Generate code coverage
28
28
-
command: |
29
29
-
cargo llvm-cov \
30
30
-
--all-features \
31
31
-
--workspace \
32
32
-
--lcov \
33
33
-
--output-path lcov.info \
34
34
-
--doctests \
23
23
+
- name: Run tests
24
24
+
command: cargo test