+5
-14
.tangled/workflows/test.yml
+5
-14
.tangled/workflows/test.yml
···
6
7
dependencies:
8
nixpkgs:
9
- cargo
10
-
- cargo-llvm-cov
11
- rustup
12
13
steps:
14
-
# `--doctests` flag for `cargo llvm-cov` requires nightly channel
15
-
# see: https://github.com/taiki-e/cargo-llvm-cov/issues/2
16
- name: Setup Rust
17
command: |
18
rustup set profile minimal
19
-
rustup toolchain install nightly
20
-
rustup override set nightly
21
-
rustup component add llvm-tools-preview
22
- name: Print environment info
23
command: |
24
rustc --version --verbose
25
cargo --version
26
rustup --version
27
-
- name: Generate code coverage
28
-
command: |
29
-
cargo llvm-cov \
30
-
--all-features \
31
-
--workspace \
32
-
--lcov \
33
-
--output-path lcov.info \
34
-
--doctests \
···
6
7
dependencies:
8
nixpkgs:
9
+
- gcc
10
- cargo
11
- rustup
12
13
steps:
14
- name: Setup Rust
15
command: |
16
rustup set profile minimal
17
+
rustup toolchain install stable
18
+
rustup override set stable
19
- name: Print environment info
20
command: |
21
rustc --version --verbose
22
cargo --version
23
rustup --version
24
+
- name: Run tests
25
+
command: cargo test