Commit 822c758
committed
Fix sqlc-test-setup for GitHub Actions pre-installed MySQL
Three fixes for CI failures:
1. mysqlInitialized() now uses `sudo ls` instead of filepath.Glob.
The /var/lib/mysql directory is owned by mysql:mysql with restricted
permissions, so filepath.Glob silently failed, causing the tool to
attempt --initialize-insecure on a non-empty directory.
2. Stop any existing MySQL service before starting our own to avoid
port conflicts with pre-installed MySQL on GitHub Actions runners.
3. Remove vestigial `if: matrix.os` condition from the test step in
ci.yml — the test job has no matrix and the condition was always
truthy, producing a GitHub Actions warning.
https://claude.ai/code/session_01CsyRwSkRxBcQoaQFVkMQsJ1 parent 10cbc2a commit 822c758
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
286 | 285 | | |
287 | 286 | | |
288 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| |||
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
| 378 | + | |
| 379 | + | |
373 | 380 | | |
374 | | - | |
375 | | - | |
| 381 | + | |
376 | 382 | | |
377 | 383 | | |
378 | 384 | | |
379 | | - | |
380 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
381 | 388 | | |
0 commit comments