File tree Expand file tree Collapse file tree 3 files changed +12
-25
lines changed
Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Original file line number Diff line number Diff line change @@ -15,27 +15,19 @@ jobs:
1515 - name : Checkout sources
1616 uses : actions/checkout@v2
1717
18- - name : Add gpg test key pair
19- run : |
20- gpg --import tests/gpg/public.gpg
21- gpg --import tests/gpg/private.gpg
22- echo -e "5\ny\n" | gpg --no-tty --command-fd 0 --expert --edit-key [email protected] trust 18+ - name : Install Rust
19+ run : rustup toolchain install stable --component llvm-tools-preview
2320
24- - name : Install stable toolchain
25- uses : actions-rs/toolchain@v1
26- with :
27- profile : minimal
28- toolchain : stable
29- override : true
21+ - name : Install cargo-llvm-cov
22+ uses : taiki-e/install-action@cargo-llvm-cov
3023
31- - name : Test
32- uses :
actions-rs/[email protected] 33- with :
34- args : ' -- --test-threads 1'
24+ - name : Generate code coverage
25+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
3526
36- - name : Upload to codecov.io
37- uses : codecov/codecov-action@v2
27+ - name : Upload coverage to Codecov
28+ uses : codecov/codecov-action@v1
3829 with :
30+ files : lcov.info
3931 fail_ci_if_error : true
4032
4133 lints :
7870 - name : Run bats test harnesss
7971 run : |
8072 docker build -t bombadil-tests ./
81- docker run bombadil-tests
73+ docker run bombadil-tests
Original file line number Diff line number Diff line change @@ -120,12 +120,6 @@ mod test {
120120 use std:: env;
121121 use toml:: Value ;
122122
123- // IMPORTANT :
124- // gpg keys pair needs to be imported to run this locally
125- // `gpg --import tests/gpg/public.gpg`
126- // `gpg --import tests/gpg/private.gpg`
127- // `echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key [email protected] trust` 128-
129123 const GPG_ID : & str =
"[email protected] " ; 130124
131125 fn gpg_setup ( ) {
@@ -134,7 +128,7 @@ mod test {
134128 run_cmd ! (
135129 gpg --import $crate_dir/tests/gpg/public. gpg;
136130 gpg --import $crate_dir/tests/gpg/private. gpg;
137- echo -e "5\n y\n " | gpg --no-tty --command-fd 0 --expert --edit-key test@cocogitto . org trust;
131+ echo -e "5\n y\n " | gpg --no-tty --command-fd 0 --expert --edit-key test@toml . bombadil . org trust;
138132 ) . unwrap ( ) ;
139133 }
140134
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use std::os::unix;
1212use std:: path:: { Path , PathBuf } ;
1313use std:: sync:: Arc ;
1414use std:: time:: Duration ;
15+ use std:: { fs, io} ;
1516
1617mod dots;
1718mod git;
You can’t perform that action at this time.
0 commit comments