aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-22 16:59:34 +0900
committernsfisis <nsfisis@gmail.com>2026-08-22 17:32:58 +0900
commit7286ee29637dbc694f769b618259eb9f75bab0fa (patch)
tree8ab8644344614bc8feda6b2f0152030c4a9cba98 /justfile
parent94507ec2f265ca9400d64d42036ca1e8722e27da (diff)
downloadphp-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.tar.gz
php-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.tar.zst
php-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.zip
ci: setup GitHub Actions
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