Skip to content

add tests

add tests #803

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test VM
run: cargo t -p dash_vm # no --all-features because jit
- name: Test lints
run: cargo t -p lints
- name: Lints
run: ./lints.sh
- name: Benchmark VM
run: eval $(cargo test --release --benches -p dash_vm |& grep -o -P 'target/release/deps/full-[^\)]+') --bench --output-format bencher | tee output.txt
- name: Store output
if: github.ref == 'refs/heads/master'
uses: benchmark-action/github-action-benchmark@v1.15.0
with:
name: Benchmarks
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true