Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

Commit 16e1c68

Browse files
noahgiftclaude
andcommitted
feat: add test + coverage + security CI jobs for repo-score A+ (Refs PMAT-149)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent edc01ea commit 16e1c68

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,44 @@ jobs:
2525
repo: ${{ github.event.repository.name }}
2626
pr_sha: ${{ github.event.pull_request.head.sha || github.sha }}
2727
secrets: inherit
28+
29+
test:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: dtolnay/rust-toolchain@stable
34+
- uses: actions/cache@v4
35+
with:
36+
path: |
37+
~/.cargo/registry
38+
~/.cargo/git
39+
target
40+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
41+
- run: cargo test --lib
42+
43+
coverage:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: dtolnay/rust-toolchain@stable
48+
- uses: actions/cache@v4
49+
with:
50+
path: |
51+
~/.cargo/registry
52+
~/.cargo/git
53+
target
54+
key: ${{ runner.os }}-cargo-cov-${{ hashFiles('**/Cargo.lock') }}
55+
- run: cargo install cargo-llvm-cov --locked || true
56+
- run: cargo llvm-cov test --lib --lcov --output-path lcov.info
57+
- uses: codecov/codecov-action@v4
58+
with:
59+
files: lcov.info
60+
continue-on-error: true
61+
62+
security:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- uses: dtolnay/rust-toolchain@stable
67+
- run: cargo install cargo-audit --locked || true
68+
- run: cargo audit

0 commit comments

Comments
 (0)