Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: browser-actions/setup-chrome@v2
id: setup-chrome
with:
chrome-version: stable
install-dependencies: true

- name: Set up Go
uses: actions/setup-go@v6
with:
Expand All @@ -137,5 +143,32 @@ jobs:
- name: Check examples
run: sh scripts/check-examples.sh
- run: go test $(go list ./... | grep -v '/examples$')
env:
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
- run: go -C internal/generator test ./...
- run: go build $(go list ./... | grep -v '/examples$')

go-windows:
name: Go (Windows process management)
if: >-
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name == github.repository
runs-on: windows-latest
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
timeout-minutes: 10
defaults:
run:
working-directory: packages/sdk-go
steps:
- uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.x"
cache: false

- name: Test Windows process management
run: >-
go test
-run 'TestConfigureChromeProcessUsesDedicatedProcessGroupWindows|TestTaskkillArgsPreserveGracefulThenForcefulShutdown|TestIgnoreFinishedProcessErrorWindows'
.
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ install:
generate:
pnpm --filter ./packages/protocol build
uv --directory {{python_dir}} run --locked python scripts/generate.py
pnpm --filter ./packages/server build
go -C {{go_dir}} generate ./...

check: check-go-examples
Expand All @@ -23,6 +24,8 @@ check: check-go-examples
uv --directory {{python_dir}} run --locked ruff check .
uv --directory {{python_dir}} run --locked ty check
go -C {{go_generator_dir}} run . --check
pnpm --filter ./packages/server build
go -C {{go_dir}} run ./internal/extensionpack --check
test -z "$(find {{go_dir}} -name '*.go' -type f -exec gofmt -l {} +)"
go -C {{go_dir}} vet $(go -C {{go_dir}} list ./... | grep -v '/examples$')
go -C {{go_generator_dir}} vet ./...
Expand Down Expand Up @@ -53,8 +56,9 @@ fmt:
build:
pnpm build
uv --directory {{python_dir}} run --locked python scripts/build.py
go -C {{go_dir}} run ./internal/extensionpack --check
go -C {{go_dir}} build $(go -C {{go_dir}} list ./... | grep -v '/examples$')
go -C {{go_generator_dir}} build ./...
go -C {{go_generator_dir}} test -run '^$' ./...

changeset:
pnpm exec changeset
Expand Down
Loading
Loading