Commit f19a4e8
committed
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 errors1 parent 3935a3a commit f19a4e8
4 files changed
+77
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments