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"
|
failure-output = "immediate-final"
|
||||||
fail-fast = false
|
fail-fast = false
|
||||||
|
|
||||||
|
[profile.ci.junit]
|
||||||
|
path = "junit.xml"
|
||||||
|
|
||||||
[profile.coverage]
|
[profile.coverage]
|
||||||
retries = 0
|
retries = 0
|
||||||
status-level = "all"
|
status-level = "all"
|
||||||
final-status-level = "skip"
|
final-status-level = "skip"
|
||||||
failure-output = "immediate-final"
|
failure-output = "immediate-final"
|
||||||
fail-fast = false
|
fail-fast = false
|
||||||
|
|
||||||
|
[profile.coverage.junit]
|
||||||
|
path = "junit.xml"
|
||||||
|
|||||||
@@ -228,6 +228,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Awarnings"
|
RUSTFLAGS: "-Awarnings"
|
||||||
RUST_BACKTRACE: "1"
|
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:
|
deps:
|
||||||
name: Dependencies
|
name: Dependencies
|
||||||
@@ -300,6 +310,16 @@ jobs:
|
|||||||
run: make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
|
run: make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: "1"
|
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`"
|
- name: "`make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -410,6 +430,16 @@ jobs:
|
|||||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: "1"
|
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:
|
build_rust_nightly:
|
||||||
name: Build/nightly
|
name: Build/nightly
|
||||||
@@ -439,6 +469,16 @@ jobs:
|
|||||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: "1"
|
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:
|
compute_size:
|
||||||
name: Binary sizes
|
name: Binary sizes
|
||||||
@@ -1158,6 +1198,16 @@ jobs:
|
|||||||
flags: ${{ steps.vars.outputs.CODECOV_FLAGS }}
|
flags: ${{ steps.vars.outputs.CODECOV_FLAGS }}
|
||||||
name: codecov-umbrella
|
name: codecov-umbrella
|
||||||
fail_ci_if_error: false
|
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:
|
test_separately:
|
||||||
name: Separate Builds
|
name: Separate Builds
|
||||||
|
|||||||
Reference in New Issue
Block a user