You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(tasks): flatten test tasks into mise.toml
Simplifies test task structure by moving all task definitions
from separate files into main mise.toml. Fixes CI "unbound variable"
error by using environment variable instead of MISE USAGE flags.
Changes:
- Move test, test:legacy, test:sqlx tasks to mise.toml
- Remove tasks/test-all.sh, tasks/test.toml, tasks/rust.toml
- Update mise.toml includes (remove rust.toml, test.toml)
- Use POSTGRES_VERSION environment variable (set by CI)
- Remove --postgres flag from CI workflow (uses env var)
Variable handling:
- Before: usage_postgres from MISE USAGE syntax (didn't work in TOML)
- After: ${POSTGRES_VERSION:-17} from environment (works everywhere)
- CI sets: POSTGRES_VERSION=${{ matrix.postgres-version }}
- Local defaults to: 17
Structure:
mise.toml (all tasks inline)
├─ test → inline script
├─ test:legacy → tasks/test-legacy.sh
└─ test:sqlx → inline script
Benefits:
✓ All tasks visible in one file
✓ No MISE USAGE parsing issues
✓ Works with CI environment variables
✓ Simpler structure (3 files removed)
✓ No unbound variable errors
0 commit comments