Skip to content

Commit 954e5e5

Browse files
committed
fix(ci): keep backend tests in GUI workflow, skip frontend tests only
1 parent 3d7522f commit 954e5e5

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/release-gui.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,33 @@ permissions:
1515
contents: write
1616

1717
jobs:
18-
# Build macOS App - tests already run locally via pre-push hook
18+
# Backend tests (Go) - must pass before building
19+
test-backend:
20+
name: Backend Tests
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Go
26+
uses: actions/setup-go@v5
27+
with:
28+
go-version: '1.21'
29+
30+
- name: Create dummy frontend directory
31+
run: mkdir -p frontend/dist && echo "Test build" > frontend/dist/README.txt
32+
33+
- name: Build
34+
run: go build -v ./cmd/... ./internal/... ./pkg/...
35+
36+
- name: Test
37+
run: go test -v ./cmd/... ./internal/... ./pkg/...
38+
39+
# Build macOS App - only after backend tests pass
40+
# Frontend tests run locally via pre-push hook
1941
build-macos:
2042
name: Build macOS App
2143
runs-on: macos-latest
44+
needs: [test-backend]
2245
steps:
2346
- name: Checkout
2447
uses: actions/checkout@v4

0 commit comments

Comments
 (0)