2023-03-25 10:12:09 +00:00
|
|
|
# Run an individual test using the Lune CLI
|
|
|
|
run-test TEST_NAME:
|
2023-06-12 11:20:36 +01:00
|
|
|
cargo run -- "tests/{{TEST_NAME}}"
|
2023-03-25 10:12:09 +00:00
|
|
|
|
2023-03-27 12:00:45 +01:00
|
|
|
# Run an individual file using the Lune CLI
|
|
|
|
run-file FILE_NAME:
|
2023-06-12 11:20:36 +01:00
|
|
|
cargo run -- "{{FILE_NAME}}"
|
2023-03-27 12:00:45 +01:00
|
|
|
|
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
|