Files
zkldi_Tachi/Justfile-test
T

67 lines
1.2 KiB
Plaintext

check:
#!/bin/bash
set -euo pipefail
source .scripts/multi_evaluator.sh
evaluate "just fmt-check"
evaluate "bun run --filter '*' lint"
evaluate "just typecheck"
post_evaluate
typecheck:
bun run --filter '!tachi-seeds-scripts' typecheck
fix: fmt
#!/bin/bash
set -euo pipefail
just gen
bun run --filter '*' lint-fix
.scripts/ts_autoinherit.js
# Automatically fix any issues we can in the codebase and then
# make a commit for them
autofix: fmt
#!/bin/bash
set -euo pipefail
# Only generate a commit if the repo is clean
SHOULD_COMMIT=0
if [ -z "$(git status --porcelain)" ]; then
SHOULD_COMMIT=1
fi
just fix
if [ $SHOULD_COMMIT -eq 1 ]; then
git add .
git commit -m "chore: autofix"
fi
fmt:
bun biome format --write
bun prettier --write --list-different .
# cd deploy/infra && tofu fmt -diff
fmt-check:
bun biome format
bun prettier --check .
# cd deploy/infra && tofu fmt --check -diff
test:
#!/bin/bash
set -euo pipefail
source .scripts/multi_evaluator.sh
evaluate "just test-typescript"
post_evaluate
test-typescript:
#!/bin/bash
set -euo pipefail
bun run --filter '*' test -- --coverage.reporter=lcov --reporter=default --reporter=junit --outputFile.junit=test-results/junit.xml