Skip to content

Commit 7546a80

Browse files
committed
Don't get coverage on doc tests
1 parent 8c08750 commit 7546a80

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ jobs:
3737
with:
3838
command: check
3939
args: --workspace --all-targets --all --no-default-features
40-
- name: Install cargo-llvm-cov
41-
uses: taiki-e/install-action@cargo-llvm-cov
42-
- name: Generate code coverage
43-
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
44-
- name: Upload coverage to Codecov
45-
uses: codecov/codecov-action@v3
46-
with:
47-
token: ${{ secrets.CODECOV_TOKEN }}
48-
files: lcov.info
49-
fail_ci_if_error: true
5040

5141
linter:
5242
name: clippy-check
@@ -93,3 +83,23 @@ jobs:
9383
uses: ibiqlik/action-yamllint@v3
9484
with:
9585
config_file: .yamllint.yml
86+
87+
coverage:
88+
if: github.actor != 'dependabot[bot]' && !( github.event_name == 'pull_request' && startsWith(github.base_ref, 'bump-meilisearch-v') )
89+
runs-on: ubuntu-latest
90+
needs: integration_tests
91+
name: Code Coverage
92+
steps:
93+
- uses: actions/checkout@v4
94+
- name: Meilisearch (latest version) setup with Docker
95+
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --no-analytics --master-key=masterKey
96+
- name: Install cargo-llvm-cov
97+
uses: taiki-e/install-action@cargo-llvm-cov
98+
- name: Generate code coverage
99+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
100+
- name: Upload coverage to Codecov
101+
uses: codecov/codecov-action@v3
102+
with:
103+
token: ${{ secrets.CODECOV_TOKEN }}
104+
files: lcov.info
105+
fail_ci_if_error: true

0 commit comments

Comments
 (0)