From ae4049bb7de790d6a21bb1aa4f9bcf05bbe79d25 Mon Sep 17 00:00:00 2001 From: kajacx Date: Fri, 21 Jul 2023 20:40:42 +0200 Subject: [PATCH] Add unit test github action --- .github/workflows/rust.yml | 7 +++++++ resources/transformed/transform.sh | 0 tests/skeletons/wasi_components/run_test.sh | 0 3 files changed, 7 insertions(+) mode change 100644 => 100755 resources/transformed/transform.sh mode change 100644 => 100755 tests/skeletons/wasi_components/run_test.sh diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 003a96eb..73f44b29 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -44,7 +44,14 @@ jobs: key: ${{ runner.os }}-build-folders-${{ hashFiles('crates/*/Cargo.toml') }} restore-keys: ${{ runner.os }}-build-folders + - name: Run unit tests + env: + RUSTFLAGS: "-D warnings" + run: cd crates/wasm-bridge-js && wasm-pack test --node -- --all-features + - name: Check formatting + env: + RUSTFLAGS: "-D warnings" run: cargo fmt --all -- --check - name: Check compile warnings diff --git a/resources/transformed/transform.sh b/resources/transformed/transform.sh old mode 100644 new mode 100755 diff --git a/tests/skeletons/wasi_components/run_test.sh b/tests/skeletons/wasi_components/run_test.sh old mode 100644 new mode 100755