Skip to content

Fix CSS/JS 404 errors, add unit tests, set up code coverage #2

Fix CSS/JS 404 errors, add unit tests, set up code coverage

Fix CSS/JS 404 errors, add unit tests, set up code coverage #2

Workflow file for this run

name: Tests and Coverage
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run tests with coverage
run: cargo llvm-cov --bin log-workout --lcov --output-path lcov.info
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: lcov.info
retention-days: 7