@@ -105,32 +105,37 @@ jobs:
105
105
${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }}
106
106
${{ runner.os }}-cargo-test
107
107
108
- - uses : actions-rs/toolchain@v1
109
- with :
110
- toolchain : nightly
111
- components : clippy, llvm-tools-preview, rustfmt
112
-
113
- - name : Install cargo-llvm-cov
114
- run : |
115
- curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | \
116
- tar xzf - -C ~/.cargo/bin
117
-
118
108
- name : Install awslocal
119
109
run : pip install awscli-local
120
110
121
111
- name : Prepare LocalStack S3
122
112
run : ./quickwit-cli/tests/prepare_tests.sh
123
113
124
- - name : Generate code coverage
125
- run : |
126
- cargo +nightly llvm-cov clean --workspace
127
- cargo +nightly llvm-cov --test failpoints --no-report --features fail/failpoints
128
- cargo +nightly llvm-cov --no-report --all-features
129
- cargo +nightly llvm-cov --no-run --lcov --output-path lcov.info
130
-
131
- - name : Upload coverage to Codecov
132
-
114
+ - uses : actions-rs/toolchain@v1
133
115
with :
134
- token : ${{ secrets.CODECOV_TOKEN }} # not required for public repos
135
- files : lcov.info
136
- fail_ci_if_error : true
116
+ toolchain : stable
117
+ profile : minimal
118
+
119
+ - uses : Swatinem/rust-cache@v1
120
+
121
+ - name : Compile tests
122
+ run : cargo test --no-run --locked
123
+
124
+ - name : Run tests
125
+ run : cargo test --all-features
126
+
127
+ # Code coverage. Was removed due to #1221
128
+
129
+ # - name: Generate code coverage
130
+ # run: |
131
+ # cargo +nightly llvm-cov clean --workspace
132
+ # cargo +nightly llvm-cov --test failpoints --no-report --features fail/failpoints
133
+ # cargo +nightly llvm-cov --no-report --all-features
134
+ # cargo +nightly llvm-cov --no-run --lcov --output-path lcov.info
135
+
136
+ # - name: Upload coverage to Codecov
137
+
138
+ # with:
139
+ # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
140
+ # files: lcov.info
141
+ # fail_ci_if_error: true
0 commit comments