fix(ci): add frontend build to lint and skip CGO tests
- commit
- 3b2ffc697121d3c2d70bab11a0214e24d58cb08a
- author
- bnema · · 2025-11-30 04:38 UTC
- committer
- bnema · · 2025-11-30 04:38 UTC
- parent
- 495f8d7
- signature
- unsigned
1 file · +7 -11
M .github/workflows/ci.yml +7 -11
| @@ -17,10 +17,15 @@ jobs: | |||
| 17 | 17 | with: | |
| 18 | 18 | go-version: stable | |
| 19 | 19 | cache: true | |
| 20 | + | - uses: actions/setup-node@v6 | |
| 21 | + | with: | |
| 22 | + | node-version: '24' | |
| 20 | 23 | - name: Install WebKitGTK 6.0 dependencies | |
| 21 | 24 | run: | | |
| 22 | 25 | sudo apt-get update | |
| 23 | 26 | sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev | |
| 27 | + | - name: Build frontend assets | |
| 28 | + | run: make build-frontend | |
| 24 | 29 | - name: Run golangci-lint | |
| 25 | 30 | uses: golangci/golangci-lint-action@v7 | |
| 26 | 31 | with: | |
| @@ -36,14 +41,5 @@ jobs: | |||
| 36 | 41 | with: | |
| 37 | 42 | go-version: stable | |
| 38 | 43 | cache: true | |
| 39 | - | - uses: actions/setup-node@v6 | |
| 40 | - | with: | |
| 41 | - | node-version: '24' | |
| 42 | - | - name: Install WebKitGTK 6.0 dependencies | |
| 43 | - | run: | | |
| 44 | - | sudo apt-get update | |
| 45 | - | sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev | |
| 46 | - | - name: Build frontend assets | |
| 47 | - | run: make build-frontend | |
| 48 | - | - name: Run tests | |
| 49 | - | run: CGO_ENABLED=1 go test -tags=webkit_cgo -v ./... | |
| 44 | + | - name: Run tests (non-CGO packages only) | |
| 45 | + | run: CGO_ENABLED=0 go test -v ./... | |
| @@ -17,10 +17,15 @@ jobs: | |||||
| 17 | with: | 17 | with: | ||
| 18 | go-version: stable | 18 | go-version: stable | ||
| 19 | cache: true | 19 | cache: true | ||
| 20 | + | - uses: actions/setup-node@v6 | |||
| 21 | + | with: | |||
| 22 | + | node-version: '24' | |||
| 20 | - name: Install WebKitGTK 6.0 dependencies | 23 | - name: Install WebKitGTK 6.0 dependencies | ||
| 21 | run: | | 24 | run: | | ||
| 22 | sudo apt-get update | 25 | sudo apt-get update | ||
| 23 | sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev | 26 | sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev | ||
| 27 | + | - name: Build frontend assets | |||
| 28 | + | run: make build-frontend | |||
| 24 | - name: Run golangci-lint | 29 | - name: Run golangci-lint | ||
| 25 | uses: golangci/golangci-lint-action@v7 | 30 | uses: golangci/golangci-lint-action@v7 | ||
| 26 | with: | 31 | with: | ||
| @@ -36,14 +41,5 @@ jobs: | |||||
| 36 | with: | 41 | with: | ||
| 37 | go-version: stable | 42 | go-version: stable | ||
| 38 | cache: true | 43 | cache: true | ||
| 39 | - | - uses: actions/setup-node@v6 | 44 | + | - name: Run tests (non-CGO packages only) |
| 40 | - | with: | 45 | + | run: CGO_ENABLED=0 go test -v ./... |
| 41 | - | node-version: '24' | |||
| 42 | - | - name: Install WebKitGTK 6.0 dependencies | |||
| 43 | - | run: | | |||
| 44 | - | sudo apt-get update | |||
| 45 | - | sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev | |||
| 46 | - | - name: Build frontend assets | |||
| 47 | - | run: make build-frontend | |||
| 48 | - | - name: Run tests | |||
| 49 | - | run: CGO_ENABLED=1 go test -tags=webkit_cgo -v ./... | |||