Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Verify

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
model-and-build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install pinned Rust toolchain
run: rustup toolchain install 1.92.0 --profile minimal --target wasm32-unknown-unknown
- name: Test numerical models
run: cargo +1.92.0 test -p doke-core --locked
- name: Check browser Rust target
run: cargo +1.92.0 check -p doke-web --target wasm32-unknown-unknown --locked
- name: Validate scientific references
run: python3 tools/check_content.py
- name: Check browser script syntax
run: |
for file in public/*.js tests/*.mjs tools/*.mjs; do
node --check "$file"
done
2 changes: 2 additions & 0 deletions crates/doke-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Deterministic educational timelines and a separate, uncalibrated rate model.
use serde::{Deserialize, Serialize};

pub mod plasticity;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Model {
pub e: f64,
Expand Down
Loading
Loading