Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
ci: add `cargo hack` (#1160)
Michael Schmidt7b351f098a75
diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.ymlindex c6f18383e..c096be6b6 100644--- a/.github/workflows/precommit.yml+++ b/.github/workflows/precommit.yml@@ -31,5 +31,8 @@ jobs:uses: Swatinem/[email protected]- name: Install `wasm-pack`run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh+ - name: Install `cargo-hack`+ uses: taiki-e/install-action@cargo-hack+ run: cargo hack check --each-feature- name: Precommitrun: just precommitdiff --git a/justfile b/justfileindex fb5317c15..1c8be014a 100644--- a/justfile+++ b/justfile@@ -214,6 +214,7 @@ precommit: check test build-harperjs build-obsidian build-web build-wp build-chrset -eo pipefailcargo build --all-targets+ cargo hack check --each-feature# Install `harper-cli` and `harper-ls` to your machine via `cargo`install:diff --git a/packages/web/src/routes/docs/contributors/environment/+page.md b/packages/web/src/routes/docs/contributors/environment/+page.mdindex 57a65b55b..5b6b4303d 100644--- a/packages/web/src/routes/docs/contributors/environment/+page.md+++ b/packages/web/src/routes/docs/contributors/environment/+page.md@@ -2,7 +2,7 @@title: Set Up Your Environment----To use the tooling required to build and debug Harper, you'll need the following programs available in your `$PATH`.+To use the tooling required to build and debug Harper, you'll need the following programs available in your `$PATH`.For Nix users, we provide a [Nix development shell](#Nix-development-shell) to setup all the necessary tooling automatically.- [`just`](https://github.com/casey/just)@@ -14,6 +14,7 @@ For Nix users, we provide a [Nix development shell](#Nix-development-shell) to s- [`wasm-pack`](https://rustwasm.github.io/wasm-pack/installer/)- `zip`- `pandoc`+- [`cargo-hack`](https://github.com/taiki-e/cargo-hack?tab=readme-ov-file#installation)To run integration tests, you may also need `libnss3` and/or `libasound3`.These are installable in Ubuntu using `apt-get`.