Skip to content

Bump codecov/codecov-action from 5.0.4 to 5.0.7 (#193) #574

Bump codecov/codecov-action from 5.0.4 to 5.0.7 (#193)

Bump codecov/codecov-action from 5.0.4 to 5.0.7 (#193) #574

Workflow file for this run

on:
push:
branches:
- main
paths:
- "**.rs"
- Cargo.toml
- Cargo.lock
- .github/workflows/cargo-test.yml
pull_request:
paths:
- "**.rs"
- Cargo.toml
- Cargo.lock
- .github/workflows/cargo-test.yml
workflow_dispatch:
permissions: read-all
name: cargo test
jobs:
cargotest:
name: cargo test
runs-on: ubuntu-latest
env:
# This envvar is here to prevent `ring` from failing due to a
# glibc linking error. I don't know why this fixes it and I can't
# be bothered to dig in right now.
#
# Remove this when it no longer FTBFS on `ring` in CI.
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libudev-dev
shell: bash
- name: cargo test
shell: bash
run: |
cargo llvm-cov nextest --all --lcov --output-path lcov.info --test-threads=1 --no-fail-fast
- name: Upload to codecov.io
uses: codecov/[email protected]
with:
slug: KittyCAD/machine-api
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
flags: unittests
verbose: true
files: lcov.info