Files
Reims-Go/.github/workflows/ci.yml
T
2026-11-28 09:01:10 -07:00

47 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Frontend build
shell: pwsh
run: |
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend build
- name: Go test & vet
shell: pwsh
run: |
go test ./...
go vet ./...
- name: Build CLI & GUI binaries
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path build/bin | Out-Null
go build -trimpath -o build/bin/reims-go-cli.exe ./cmd/reims-go
go build -trimpath -tags desktop,production -ldflags "-H windowsgui" -o build/bin/reims-go.exe .