mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
ci: add Codecov Test Analytics integration
This commit is contained in:
@@ -5,9 +5,15 @@ final-status-level = "skip"
|
||||
failure-output = "immediate-final"
|
||||
fail-fast = false
|
||||
|
||||
[profile.ci.junit]
|
||||
path = "junit.xml"
|
||||
|
||||
[profile.coverage]
|
||||
retries = 0
|
||||
status-level = "all"
|
||||
final-status-level = "skip"
|
||||
failure-output = "immediate-final"
|
||||
fail-fast = false
|
||||
|
||||
[profile.coverage.junit]
|
||||
path = "junit.xml"
|
||||
|
||||
@@ -228,6 +228,16 @@ jobs:
|
||||
env:
|
||||
RUSTFLAGS: "-Awarnings"
|
||||
RUST_BACKTRACE: "1"
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
report_type: test_results
|
||||
files: target/nextest/ci/junit.xml
|
||||
disable_search: true
|
||||
flags: msrv,${{ matrix.job.os }}
|
||||
fail_ci_if_error: false
|
||||
|
||||
deps:
|
||||
name: Dependencies
|
||||
@@ -300,6 +310,16 @@ jobs:
|
||||
run: make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
|
||||
env:
|
||||
RUST_BACKTRACE: "1"
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
report_type: test_results
|
||||
files: target/nextest/ci/junit.xml
|
||||
disable_search: true
|
||||
flags: makefile,${{ matrix.job.os }}
|
||||
fail_ci_if_error: false
|
||||
- name: "`make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -410,6 +430,16 @@ jobs:
|
||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||
env:
|
||||
RUST_BACKTRACE: "1"
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
report_type: test_results
|
||||
files: target/nextest/ci/junit.xml
|
||||
disable_search: true
|
||||
flags: stable,${{ matrix.job.os }}
|
||||
fail_ci_if_error: false
|
||||
|
||||
build_rust_nightly:
|
||||
name: Build/nightly
|
||||
@@ -439,6 +469,16 @@ jobs:
|
||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||
env:
|
||||
RUST_BACKTRACE: "1"
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
report_type: test_results
|
||||
files: target/nextest/ci/junit.xml
|
||||
disable_search: true
|
||||
flags: nightly,${{ matrix.job.os }}
|
||||
fail_ci_if_error: false
|
||||
|
||||
compute_size:
|
||||
name: Binary sizes
|
||||
@@ -1158,6 +1198,16 @@ jobs:
|
||||
flags: ${{ steps.vars.outputs.CODECOV_FLAGS }}
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
report_type: test_results
|
||||
files: target/nextest/coverage/junit.xml
|
||||
disable_search: true
|
||||
flags: coverage,${{ matrix.job.os }}
|
||||
fail_ci_if_error: false
|
||||
|
||||
test_separately:
|
||||
name: Separate Builds
|
||||
|
||||
Reference in New Issue
Block a user