Skip to content

Update codecov/codecov-action digest to fb8b358 #188

Update codecov/codecov-action digest to fb8b358

Update codecov/codecov-action digest to fb8b358 #188

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths:
- ".github/workflows/tests.yaml"
- "Cargo.lock"
- "Cargo.toml"
- "npm/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/tests.yaml"
- "Cargo.lock"
- "Cargo.toml"
- "npm/**"
- "src/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-targets -- -D warnings
- name: Check JavaScript with Biome
run: npx -y @biomejs/biome check npm/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@a164de717a0ee9284c2d9db1c6016a4c339cd333 # v2
with:
tool: cargo-llvm-cov
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
- name: Run tests with coverage
run: cargo llvm-cov --cobertura --output-path coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}