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 ]
|
branches: [ main, release ]
|
||||||
tags:
|
tags:
|
||||||
- 'release-*'
|
- 'release-*'
|
||||||
|
paths-ignore:
|
||||||
|
- "**/coverage.svg"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, release ]
|
branches: [ main, release ]
|
||||||
|
paths-ignore:
|
||||||
|
- "**/coverage.svg"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
@ -101,6 +105,8 @@ jobs:
|
||||||
coverage:
|
coverage:
|
||||||
name: Code Coverage
|
name: Code Coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
@ -130,8 +136,19 @@ jobs:
|
||||||
- name: Install llvm-tools-preview
|
- name: Install llvm-tools-preview
|
||||||
run: rustup component add 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
|
- 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:
|
security_audit:
|
||||||
name: Security Audit
|
name: Security Audit
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
[](https://crates.io/crates/rmcp)
|
[](https://crates.io/crates/rmcp)
|
||||||

|

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

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