Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Install just
uses: extractions/setup-just@v3

- name: Run tests
run: cargo test
run: just check-rust

coln-js-runtime-check:
runs-on: ubuntu-latest
Expand All @@ -74,6 +80,9 @@ jobs:
with:
target: wasm32-unknown-unknown

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Install wasm-bindgen-cli
run: |
VERSION="0.2.123"
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
cabal-install
cabal2nix
cargo-llvm-cov
cargo-nextest
coln-manual-dev
forester
fourmolu
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fix package:

check-haskell: (check "coln-compiler") (check "coln-cli") (check "coln-repl") (check "coln-ls") (check "fnotation") (check "diagnostician")

check-rust: (check "coln-store") (check "coln-batch")
check-rust: (check "coln-store") (check "coln-query") (check "coln-batch") (check "coln-flir-rs")

check-typescript: (check "coln-js-runtime")

Expand Down
5 changes: 4 additions & 1 deletion packages/coln-batch/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ clippy:
cargo clippy -p {{crate}} --all-targets --all-features -- -D warnings

test:
cargo test -p {{crate}} --all-targets
cargo nextest run -p {{crate}} --all-targets
# As of now nextest does not support doc tests, so we fallback to
# cargo test to run them.
cargo test --doc -p {{crate}}

import:
cargo fix -p {{crate}} --all-targets --all-features --allow-dirty --allow-staged
Expand Down
39 changes: 39 additions & 0 deletions packages/coln-flir-rs/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Task runner: https://github.com/casey/just
# From packages/coln-flir-rs, with Rust on PATH (e.g. `nix develop`):
# just # list available recipes
# just check # fmt-check + clippy + test
# just cargo-check # type-check coln-flir-rs targets
# just import
# just fix # apply cargo fixes + format

crate := "coln-flir-rs"

default:
@just --list

fmt:
cargo fmt -p {{crate}}

fmt-check:
cargo fmt -p {{crate}} --check

cargo-check:
cargo check -p {{crate}} --all-targets

clippy:
cargo clippy -p {{crate}} --all-targets --all-features -- -D warnings

import:
cargo fix -p {{crate}} --all-targets --all-features --allow-dirty --allow-staged

fix: import fmt

test:
cargo nextest run -p {{crate}} --all-targets
# As of now nextest does not support doc tests, so we fallback to
# cargo test to run them.
cargo test --doc -p {{crate}}

check: fmt-check clippy test

ci: check
7 changes: 6 additions & 1 deletion packages/coln-js-runtime/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
# just # list recipes
# just test # rust + npm tests

crate := "coln-js-runtime"

default:
@just --list

test-rust:
cargo test --all-targets
cargo nextest run -p {{crate}} --all-targets
# As of now nextest does not support doc tests, so we fallback to
# cargo test to run them.
cargo test --doc -p {{crate}}

build:
npm run build
Expand Down
5 changes: 4 additions & 1 deletion packages/coln-query/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ import:
fix: import fmt

test:
cargo test -p {{crate}} --all-targets
cargo nextest run -p {{crate}} --all-targets
# As of now nextest does not support doc tests, so we fallback to
# cargo test to run them.
cargo test --doc -p {{crate}}

check: fmt-check clippy test

Expand Down
5 changes: 4 additions & 1 deletion packages/coln-store/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ import:
fix: import fmt

test:
cargo test -p {{crate}} --all-targets
cargo nextest run -p {{crate}} --all-targets
# As of now nextest does not support doc tests, so we fallback to
# cargo test to run them.
cargo test --doc -p {{crate}}

check: fmt-check clippy test

Expand Down
Loading