From 1cde3062dfe6cfc09363d36552ad9969fa8d64bc Mon Sep 17 00:00:00 2001 From: Andy Carlson <2yinyang2@gmail.com> Date: Thu, 5 Feb 2026 09:13:51 -0500 Subject: [PATCH 1/3] add workflow for linting and compiling --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e4f521d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: '1.25.0' + - name: Check code formatting + run: | + if [ -n "$(gofmt -s -l .)" ]; then + echo "Go code is not formatted:" + gofmt -s -d . + exit 1 + fi + - name: Run go vet + run: go vet ./... + - name: Install golangci-lint + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + - name: Run golangci-lint + run: golangci-lint run + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: '1.25.0' + - name: Build + run: go build -v ./... From d1d760697721184d957fc03a348fed46e1a293d5 Mon Sep 17 00:00:00 2001 From: Andy Carlson <2yinyang2@gmail.com> Date: Thu, 5 Feb 2026 09:20:22 -0500 Subject: [PATCH 2/3] add github action --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4f521d..555725c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,3 +37,20 @@ jobs: go-version: '1.25.0' - name: Build run: go build -v ./... + + docker: + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: warpdotdev/warp-agent-worker:latest From befeec65547975a38c9240ff9386861ac9e6e9c3 Mon Sep 17 00:00:00 2001 From: Andy Carlson <2yinyang2@gmail.com> Date: Thu, 5 Feb 2026 09:23:22 -0500 Subject: [PATCH 3/3] fix format to satisfy CI --- internal/types/messages.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/types/messages.go b/internal/types/messages.go index 7b27559..ed7f8ce 100644 --- a/internal/types/messages.go +++ b/internal/types/messages.go @@ -50,12 +50,12 @@ type TaskDefinition struct { // AmbientAgentConfig represents the agent configuration type AmbientAgentConfig struct { - EnvironmentID *string `json:"environment_id,omitempty"` - BasePrompt *string `json:"base_prompt,omitempty"` - ModelID *string `json:"model_id,omitempty"` - ProfileID *string `json:"profile_id,omitempty"` - SkillSpec *string `json:"skill_spec,omitempty"` - MCPServers map[string]json.RawMessage `json:"mcp_servers,omitempty"` + EnvironmentID *string `json:"environment_id,omitempty"` + BasePrompt *string `json:"base_prompt,omitempty"` + ModelID *string `json:"model_id,omitempty"` + ProfileID *string `json:"profile_id,omitempty"` + SkillSpec *string `json:"skill_spec,omitempty"` + MCPServers map[string]json.RawMessage `json:"mcp_servers,omitempty"` } // Task represents an ambient agent job.