Feat/manager v2 request presets #5
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: Manager V2 | |
| on: | |
| pull_request: | |
| paths: | |
| - manager-v2/** | |
| - pkg/routes/** | |
| - Dockerfile | |
| - .github/workflows/manager-v2.yml | |
| push: | |
| branches: | |
| - feat/manager-v2-foundation | |
| paths: | |
| - manager-v2/** | |
| - pkg/routes/** | |
| - Dockerfile | |
| - .github/workflows/manager-v2.yml | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-manager-v2: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.12" | |
| cache: npm | |
| cache-dependency-path: manager-v2/package.json | |
| - name: Install dependencies | |
| working-directory: manager-v2 | |
| run: npm install --no-audit --no-fund | |
| - name: Typecheck | |
| working-directory: manager-v2 | |
| run: npm run typecheck | |
| - name: Validate API catalog coverage | |
| working-directory: manager-v2 | |
| run: npm run check:catalog | |
| - name: Build frontend | |
| working-directory: manager-v2 | |
| run: npm run build | |
| - name: Validate embedded route | |
| run: | | |
| test -f manager-v2/dist/index.html | |
| grep -q registerManagerV2Routes pkg/routes/routes.go | |
| grep -q /manager-v2/assets pkg/routes/manager_v2.go | |
| grep -q manager-v2-build Dockerfile | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Test Manager V2 routes | |
| run: go test ./pkg/routes | |
| - name: Build server | |
| run: go build -o /tmp/evolution-go-manager-v2 ./cmd/evolution-go |