Upload coverage form integration test
@@ -40,16 +40,17 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
+ components: llvm-tools-preview
- uses: Swatinem/rust-cache@v1
- - name: Build test runner
- run: cargo build -p tremor-cli
+ - name: Install cargo-llvm-cov
+ uses: taiki-e/install-action@cargo-llvm-cov
- name: Print docker-compose version
run: docker-compose --version
- name: run ${{ matrix.kind }} tests
- run: cargo run -p tremor-cli -- test ${{ matrix.kind }} tremor-cli/tests ${{ matrix.exclude_tests }}
+ run: cargo llvm-cov run -p tremor-cli -- test ${{ matrix.kind }} tremor-cli/tests ${{ matrix.exclude_tests }}
- name: Upload error logs
uses: actions/upload-artifact@v2
@@ -57,3 +58,12 @@ jobs:
with:
name: test-errors
path: tremor-cli/tests/**/*.log
+
+ - name: Upload coverage
+ uses: codecov/codecov-action@v2
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
+ files: ./lcov.txt # optional
+ flags: integrationtests-${{ matrix.kind }} # optional
+ fail_ci_if_error: true # optional (default = false)
+ verbose: true # optional (default = false)
