Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/_main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PR tests

on:
push:
branches: ["main"]
paths-ignore:
- "**.md"
pull_request:
branches: ["main"]
paths-ignore:
Expand Down Expand Up @@ -30,6 +34,8 @@ jobs:

ci:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Rust
Expand All @@ -40,8 +46,19 @@ jobs:
run: cargo check
- name: Crate Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Crate Test
run: cargo test
- uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Install llvm-tools-preview
run: rustup component add llvm-tools-preview
- name: Crate Test with coverage
run: cargo llvm-cov --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
flags: unit-tests
files: codecov.json

check-milestones:
needs: build
Expand Down
23 changes: 23 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true

ignore:
- "pkg/config/**"

flags:
unit-tests:
carryforward: true

comment:
layout: "reach,diff,flags,files"
behavior: default
Loading