Commit 4762497
authored
feat: add CI verification targets and PR checks (#41)
* fix: migrate eslint config to typescript-eslint v8 + @Stylistic
- Rename .eslintrc.js to .eslintrc.cjs (ESM module compatibility)
- Replace 17 removed formatting rules with @stylistic/eslint-plugin equivalents
- Replace ban-types with no-restricted-types + no-unsafe-function-type + no-wrapper-object-types
- Replace no-empty-interface with no-empty-object-type
- Replace no-throw-literal with only-throw-error
- Remove no-var-requires (covered by no-require-imports)
- Remove prefer-ts-expect-error (covered by ban-ts-comment)
- Replace no-loss-of-precision with base ESLint rule
- Fix lint target to point at ui/ instead of nonexistent src/
- Point parserOptions.project at tsconfig.app.json
* feat: add CI verification targets and PR checks workflow
Add Makefile targets for deterministic local/CI verification:
- make check: runs all checks in sequence (fail-fast)
- Go: go-build, go-vet, go-test, go-lint, fmt-check, fmt
- Bindings: bindings, bindings-check (detects stale wails bindings)
- UI: ui-install, ui-build, ui-lint, ui-typecheck
Add GitHub Actions PR workflow (.github/workflows/pr-checks.yml):
- Runs Go checks, bindings freshness, and UI checks in parallel
- Caches Go modules and pnpm store
- Gates PR merges on all checks passing
Add dist/.gitkeep so go:embed all:dist resolves without a
frontend build, enabling Go checks to run independently.
* fix: resolve CI failures for PR checks
- Fix pids_test.go: ensure ~/.omniview/ directory exists before tests
that write to the PID file (fails on CI runners without home setup)
- Regenerate stale wails bindings (models.ts was out of sync with Go
structs: added direction, targetNamespaced fields; removed ownerRefKind)
- Remove --max-warnings 0 from lint script (1523 pre-existing errors)
- Mark fmt-check, go-lint, ui-lint, ui-typecheck as continue-on-error
in CI workflow (pre-existing issues on main, will be fixed separately)
* fix: address code review findings
- Use PR number in concurrency group key to avoid cross-fork collisions
- Pin golangci-lint version to v2.1 instead of latest
- Extract ensurePluginPIDDir helper to deduplicate test setup
- Make fmt-check verify both goimports and gofmt (matching fmt target)
- Add set -e and trap cleanup to bindings-check so failures restore
the original bindings and always clean up the temp directory
- Move ESLINT_USE_FLAT_CONFIG=false into package.json lint script so
pnpm lint and make ui-lint behave identically
* fix: pin CI node/pnpm versions to .tool-versions, require goimports
- Pin NODE_VERSION to 20.18.1 and PNPM_VERSION to 9.15.0 to match
.tool-versions (GO_VERSION stays at 1.26 per go.mod requirement)
- Make fmt-check fail loudly when goimports is not installed instead
of silently skipping the import check1 parent ef8b8a2 commit 4762497
12 files changed
Lines changed: 311 additions & 50 deletions
File tree
- .github/workflows
- backend/pkg/plugin
- dist
- packages/omniviewdev-runtime/src/wailsjs
- go
- runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | | - | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
| |||
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | | - | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
| 181 | + | |
180 | 182 | | |
181 | | - | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | | - | |
| 242 | + | |
241 | 243 | | |
242 | | - | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
| 252 | + | |
251 | 253 | | |
252 | | - | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
261 | | - | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
362 | 366 | | |
363 | 367 | | |
364 | | - | |
| 368 | + | |
365 | 369 | | |
366 | 370 | | |
367 | 371 | | |
| |||
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
395 | | - | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | | - | |
399 | | - | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
| 475 | + | |
471 | 476 | | |
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
477 | 482 | | |
| 483 | + | |
478 | 484 | | |
479 | | - | |
| 485 | + | |
480 | 486 | | |
481 | 487 | | |
482 | 488 | | |
| |||
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
537 | | - | |
| 543 | + | |
538 | 544 | | |
539 | | - | |
| 545 | + | |
540 | 546 | | |
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
546 | 552 | | |
547 | | - | |
548 | 553 | | |
549 | 554 | | |
550 | 555 | | |
| |||
584 | 589 | | |
585 | 590 | | |
586 | 591 | | |
587 | | - | |
| 592 | + | |
588 | 593 | | |
589 | 594 | | |
590 | | - | |
| 595 | + | |
591 | 596 | | |
592 | 597 | | |
593 | 598 | | |
| |||
613 | 618 | | |
614 | 619 | | |
615 | 620 | | |
616 | | - | |
| 621 | + | |
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
| |||
622 | 627 | | |
623 | 628 | | |
624 | 629 | | |
625 | | - | |
| 630 | + | |
626 | 631 | | |
627 | | - | |
| 632 | + | |
628 | 633 | | |
629 | | - | |
| 634 | + | |
630 | 635 | | |
631 | 636 | | |
632 | 637 | | |
| |||
656 | 661 | | |
657 | 662 | | |
658 | 663 | | |
659 | | - | |
| 664 | + | |
660 | 665 | | |
661 | 666 | | |
662 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments