fix(ci): resolve CI failures for Go checks, codegen, and frontend type-checking
- Add frontend/dist stub in Go Checks and Go Tests jobs so the go:embed directive in main.go resolves without a real frontend build - Run go mod tidy to add missing go.sum entries for templ/sqlc tool transitive dependencies (fixes Code Generation Check) - Delete dead library-picker.ts that imported non-existent Wails bindings module and called undefined functions - Exclude Wails-generated JS stubs from tsc strict checking via tsconfig exclude (the companion .d.ts files provide types) - Add title and artist fields to QueueTrack interface to match the Go backend struct and fix queue-panel.ts type errors
This commit is contained in:
@@ -61,6 +61,11 @@ jobs:
|
||||
- name: Install system dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libgtk-3-dev libwebkit2gtk-4.1-dev
|
||||
|
||||
# The go:embed directive in main.go requires frontend/dist to exist.
|
||||
# A stub suffices for vet/lint; the real build is verified separately.
|
||||
- name: Create frontend dist stub
|
||||
run: mkdir -p frontend/dist && touch frontend/dist/index.html
|
||||
|
||||
- name: Go mod verify
|
||||
run: go mod verify
|
||||
|
||||
@@ -95,6 +100,10 @@ jobs:
|
||||
- name: Install system dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libgtk-3-dev libwebkit2gtk-4.1-dev
|
||||
|
||||
# The go:embed directive in main.go requires frontend/dist to exist.
|
||||
- name: Create frontend dist stub
|
||||
run: mkdir -p frontend/dist && touch frontend/dist/index.html
|
||||
|
||||
- name: Run tests
|
||||
run: go test -tags webkit2_41 -race -count=1 -timeout 120s ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user