add History
, use in tests, convert some Dual
s to floats in wasm exports
#54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ "**" ] | |
workflow_dispatch: | |
env: | |
RUST_BACKTRACE: 1 | |
RUST_LOG: info | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
- run: wasm-pack build --target web | |
- run: rm pkg/.gitignore | |
- name: Push pkg/ | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist | |
FOLDER: pkg | |
MESSAGE: "{sha}: {msg}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: cargo build | |
- run: cargo test -- --nocapture |