-
Notifications
You must be signed in to change notification settings - Fork 82
34 lines (29 loc) · 1.02 KB
/
pr-backend-tests.yml
File metadata and controls
34 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Backend Tests
on:
workflow_call:
inputs:
head_ref:
description: 'The head ref of the PR'
required: false
type: string
jobs:
test:
name: Backend Tests
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.head_ref || github.head_ref }}
fetch-depth: 1
- name: Install nightly Rust toolchain
run: rustup toolchain install nightly-2026-03-30 --component llvm-tools --no-self-update
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@c070f87102a1c75b3183910f391c1cb887fe13c8 # v2.77.6
with:
tool: cargo-llvm-cov
- name: Run backend tests with coverage
working-directory: src-tauri
run: |
echo "Running Cargo tests with 100% line coverage enforcement..."
cargo +nightly-2026-03-30 llvm-cov --ignore-filename-regex "(lib|main)\.rs" --fail-under-lines 100