aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 00000000..5978c11f
--- /dev/null
+++ b/justfile
@@ -0,0 +1,33 @@
+help:
+ @just --list
+
+check: lint clippy test
+
+lint: setup
+ ./scripts/linters/lint
+
+clippy: setup
+ cargo clippy --tests
+
+test: setup
+ cargo test
+
+fmt:
+ nix fmt
+
+setup: fetch-fixtures
+ #!/usr/bin/env bash
+ set -euo pipefail
+ if [[ ! -f composer/vendor/autoload.php ]]; then
+ composer install --no-dev --working-dir=composer
+ fi
+ if [[ ! -f scripts/linters/vendor/autoload.php ]]; then
+ composer install --working-dir=scripts/linters
+ fi
+
+fetch-fixtures:
+ #!/usr/bin/env bash
+ set -euo pipefail
+ for fetch in crates/shirabe/tests/plugin/fixtures/*/fetch; do
+ "$fetch"
+ done