mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-07 08:23:08 +00:00
codecov.yml install deps
This commit is contained in:
parent
3d973ff30e
commit
aef10b1f9c
9
.github/workflows/codecov.yml
vendored
9
.github/workflows/codecov.yml
vendored
@ -15,28 +15,26 @@ jobs:
|
|||||||
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
|
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repo
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Install Rust toolchain (stable)
|
|
||||||
- name: Set up Rust
|
- name: Set up Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
components: llvm-tools-preview
|
components: llvm-tools-preview
|
||||||
|
|
||||||
# Build and test with coverage instrumentation
|
- name: Install system deps
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y build-essential clang lld
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cargo build --all-features
|
cargo build --all-features
|
||||||
cargo test --all-features
|
cargo test --all-features
|
||||||
|
|
||||||
# Install grcov
|
|
||||||
- name: Install grcov
|
- name: Install grcov
|
||||||
run: cargo install grcov
|
run: cargo install grcov
|
||||||
|
|
||||||
# Generate lcov report
|
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
run: |
|
run: |
|
||||||
mkdir -p coverage
|
mkdir -p coverage
|
||||||
@ -50,7 +48,6 @@ jobs:
|
|||||||
--ignore "/*" \
|
--ignore "/*" \
|
||||||
-o coverage/tests.lcov
|
-o coverage/tests.lcov
|
||||||
|
|
||||||
# Upload to Codecov
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user