feat(controller): dispatch agent runs for incident.io webhook events #235
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: --timeout=5m | |
| proto-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| version: latest | |
| - name: Lint protobuf definitions | |
| run: buf lint proto/ | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Run tests with race detector | |
| run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage.txt | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Build controller binary | |
| run: go build -v -o bin/osmia ./cmd/osmia/ | |
| helm-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: azure/setup-helm@v4 | |
| with: | |
| version: '3.14.0' | |
| - name: Lint Helm chart | |
| run: helm lint charts/osmia/ | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build controller image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/controller/Dockerfile | |
| push: false | |
| tags: osmia/controller:ci | |
| - name: Build Claude Code engine image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: docker/engine-claude-code | |
| file: docker/engine-claude-code/Dockerfile | |
| push: false | |
| tags: osmia/engine-claude-code:ci | |
| - name: Build Codex engine image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: docker/engine-codex | |
| file: docker/engine-codex/Dockerfile | |
| push: false | |
| tags: osmia/engine-codex:ci |