File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ build-frontend :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : " 22"
18+
19+ - name : Build frontend
20+ run : |
21+ cd internal/ui/frontend
22+ npm install
23+ npm run build
24+
25+ - uses : actions/upload-artifact@v4
26+ with :
27+ name : frontend-dist
28+ path : internal/ui/frontend/dist/
29+
30+ test :
31+ runs-on : ubuntu-latest
32+ needs : build-frontend
33+ steps :
34+ - uses : actions/checkout@v4
35+
36+ - uses : actions/setup-go@v5
37+ with :
38+ go-version : " 1.24"
39+
40+ - uses : actions/download-artifact@v4
41+ with :
42+ name : frontend-dist
43+ path : internal/ui/frontend/dist/
44+
45+ - name : Run tests
46+ run : go test ./internal/...
47+
48+ - name : Vet
49+ run : go vet ./internal/...
50+
51+ build :
52+ runs-on : macos-14
53+ needs : [build-frontend, test]
54+ steps :
55+ - uses : actions/checkout@v4
56+
57+ - uses : actions/setup-go@v5
58+ with :
59+ go-version : " 1.24"
60+
61+ - uses : actions/download-artifact@v4
62+ with :
63+ name : frontend-dist
64+ path : internal/ui/frontend/dist/
65+
66+ - name : Build macOS binary
67+ run : CGO_LDFLAGS="-framework UniformTypeIdentifiers" go build -tags production -o egressor ./cmd/egressor
68+
69+ - name : Verify binary
70+ run : ./egressor --version
Original file line number Diff line number Diff line change 2929 name : frontend-dist
3030 path : internal/ui/frontend/dist/
3131
32- test :
33- runs-on : ubuntu-latest
34- needs : build-frontend
35- steps :
36- - uses : actions/checkout@v4
37-
38- - uses : actions/setup-go@v5
39- with :
40- go-version : " 1.24"
41-
42- - uses : actions/download-artifact@v4
43- with :
44- name : frontend-dist
45- path : internal/ui/frontend/dist/
46-
47- - name : Run tests
48- run : go test ./internal/...
49-
5032 release-macos :
5133 runs-on : macos-14
52- needs : [ build-frontend, test]
34+ needs : build-frontend
5335 steps :
5436 - uses : actions/checkout@v4
5537 with :
7456
7557 release-linux :
7658 runs-on : ubuntu-latest
77- needs : [ build-frontend, test]
59+ needs : build-frontend
7860 steps :
7961 - uses : actions/checkout@v4
8062 with :
10385
10486 release-windows :
10587 runs-on : ubuntu-latest
106- needs : [ build-frontend, test]
88+ needs : build-frontend
10789 steps :
10890 - uses : actions/checkout@v4
10991 with :
You can’t perform that action at this time.
0 commit comments