diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4332e6a..5c9b6215 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: with: cache: true cache-workspaces: true - components: clippy, rustfmt + components: clippy, rustfmt, wasm-pack toolchain: nightly - name: 'Install dependencies: Node' run: yarn diff --git a/README.md b/README.md index 96de29ec..ab6c814b 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ ### Setup 1. [Install Rust (recommended through rustup)](https://rustup.rs/) +1. [Install wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) 1. [Install Node (recommended through NVM)](https://github.com/nvm-sh/nvm) 1. Install Yarn -> `npm i yarn -g` 1. Clone this repo -> `git clone git@github.com:HHogg/hogg.io.git` diff --git a/package.json b/package.json index 4e8edcff..c1dc60ac 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "lint:rust": "yarn lint:rust:clippy && yarn lint:rust:fmt", "lint:rust:clippy": "cargo clippy --all-targets --all-features -- -D warnings", "lint:rust:fmt": "cargo fmt --all -- --check", + "test": "yarn test:rust", "test:rust": "cargo watch -x \"test -- --test-threads=1\"", "test:rust:clean": "cargo insta test --unreferenced=delete", "test:rust:review": "cargo insta review --include-ignored",