diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..d311f90 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,20 @@ +name: Test code +on: [push, pull_request] + +jobs: + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Install the Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + target: wasm32-unknown-unknown + components: rustfmt + - name: Install wasm-bindgen + run: cargo install --git https://github.com/rustwasm/wasm-bindgen.git --tag 0.2.87 wasm-bindgen-cli + - name: Run tests + run: cargo test \ No newline at end of file