parent
35282ee34c
commit
4dc0cad499
2 changed files with 19 additions and 1 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -5,8 +5,12 @@ on:
|
|||
branches: [ main, release ]
|
||||
tags:
|
||||
- 'release-*'
|
||||
paths-ignore:
|
||||
- "**/coverage.svg"
|
||||
pull_request:
|
||||
branches: [ main, release ]
|
||||
paths-ignore:
|
||||
- "**/coverage.svg"
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
|
@ -101,6 +105,8 @@ jobs:
|
|||
coverage:
|
||||
name: Code Coverage
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
@ -130,8 +136,19 @@ jobs:
|
|||
- name: Install llvm-tools-preview
|
||||
run: rustup component add llvm-tools-preview
|
||||
|
||||
- name: Install lcov
|
||||
run: sudo apt-get update && sudo apt-get install -y lcov bc
|
||||
|
||||
- name: Run tests with coverage
|
||||
run: cargo llvm-cov --all-features
|
||||
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
|
||||
|
||||
- name: Generate coverage badge
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: GoogleCloudPlatform/lcov-coverage-badge@5857899449990297b622767f36e4fa8d1218acdb
|
||||
with:
|
||||
file: ./lcov.info
|
||||
icon_name: github
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
security_audit:
|
||||
name: Security Audit
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
[](https://crates.io/crates/rmcp)
|
||||

|
||||
[](https://docs.rs/rmcp/latest/rmcp)
|
||||

|
||||
|
||||
An official rust Model Context Protocol SDK implementation with tokio async runtime.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue