materials_for_mc 0.2.0

Material builder for Monte Carlo simulations
Documentation
name: WASM tests

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  release:
    types: [published]
  workflow_dispatch:

env: 
  CARGO_TERM_COLOR: always

jobs:
  build_and_test:
    name: Rust tests
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - name: Set up Rust
        run: rustup update stable && rustup default stable
      - name: Test compile
        run: |
          curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
          wasm-pack build --target web --features wasm
          cargo test --features wasm-test
          RUST_BACKTRACE=full wasm-pack test --headless --firefox --features wasm-test