Step 4: real mode DeployCluster via ExecuteClusterDeployPlan #36
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 ] | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: ./platform-backend/go.mod | |
| - name: Go test | |
| working-directory: ./platform-backend | |
| run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Build backend | |
| working-directory: ./platform-backend | |
| run: go build -v -o /tmp/platform ./cmd/main.go | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| working-directory: ./web-console | |
| run: npm ci | |
| - name: TypeScript check | |
| working-directory: ./web-console | |
| run: npx tsc --noEmit | |
| - name: Build frontend | |
| working-directory: ./web-console | |
| run: npm run build | |
| agent: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: ./agent/go.mod | |
| - name: Go test | |
| working-directory: ./agent | |
| run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Build agent | |
| working-directory: ./agent | |
| run: go build -v -o /tmp/agent ./cmd/main.go |