Skip to content

Document probabilistic logic in valence overview #50

Document probabilistic logic in valence overview

Document probabilistic logic in valence overview #50

Workflow file for this run

name: tests
# Required check for every PR and every push to main (issue #171). Runs the
# full JS test suite (`npm test`) and the full Rust test suite (`cargo test`)
# as two separate jobs so the failing language is visible directly in the
# status checks. Adopts the action pinning and concurrency pattern from the
# JS and Rust pipeline templates; see
# docs/case-studies/issue-171/data/template-comparison.md.
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
js:
name: JS (node --test)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '20'
cache: npm
cache-dependency-path: js/package-lock.json
- name: Install JavaScript dependencies
working-directory: js
run: npm ci
- name: Run full JS test suite
working-directory: js
run: npm test
rust:
name: Rust (cargo test)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: rust
- name: Run full Rust test suite
working-directory: rust
run: cargo test --all-targets