lune/.justfile

23 lines
511 B
Makefile
Raw Normal View History

# Run an individual test using the Lune CLI
run-test TEST_NAME:
cargo run -- "tests/{{TEST_NAME}}"
# Run an individual file using the Lune CLI
run-file FILE_NAME:
cargo run -- "{{FILE_NAME}}"
2023-03-22 13:12:05 +00:00
# Run tests for the Lune library
test:
2023-08-04 20:35:32 +01:00
cargo test --lib
2023-09-25 20:30:07 +01:00
# Check formatting for all Rust & Luau files
fmt-check:
#!/usr/bin/env bash
set -euo pipefail
stylua scripts --check
stylua types --check
stylua tests --check \
--glob "tests/**/*.luau" \
--glob "!tests/roblox/rbx-test-files/**"
cargo fmt --check