File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,33 @@ permissions:
1515 contents : write
1616
1717jobs :
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
You can’t perform that action at this time.
0 commit comments