Skip to content

Update taiki-e/install-action digest to d858f81 #69

Update taiki-e/install-action digest to d858f81

Update taiki-e/install-action digest to d858f81 #69

Workflow file for this run

name: Tests
on:
push:
paths:
- ".github/workflows/tests.yaml"
- "Cargo.lock"
- "Cargo.toml"
- "npm/**"
- "src/**"
workflow_dispatch:
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@d858f8113943481093e02986a7586a4819a3bfd6 # 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@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}