-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
62 lines (58 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: ci
on:
push:
branches: [main, go]
pull_request:
branches: [main, go]
jobs:
# Go test matrix for the CLI + menubar + GUI bindings across the
# three target OSes. Wails is excluded here — it needs Node and is
# exercised separately in the release workflow. Keeping CI fast on
# PRs matters more than catching Wails-specific breakage early.
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: true
- name: Build CLI
run: go build ./cmd/devner
# cmd/devner-menubar is excluded — fyne.io/systray needs CGO
# + libappindicator on Linux, which we only install in the
# release workflow. The menubar is covered there per-OS.
- name: Test
run: go test ./internal/... ./cmd/devner/...
vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- run: go vet ./internal/... ./cmd/devner/...
# Frontend lint is cheap — catches typos in JSX before they ship
# via the Wails build. No full Wails build here to keep the PR CI
# under a minute.
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: gui/frontend
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: gui/frontend/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm tsc --noEmit