Merge pull request #173 from gridaco/ci/enable-auto-deploy #13
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, cf] | |
| pull_request: | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.4.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install workspace deps | |
| run: pnpm install --frozen-lockfile | |
| - name: Format (oxfmt) | |
| run: pnpm format:check | |
| - name: Lint (eslint) | |
| run: pnpm lint | |
| - name: Typecheck (tsc) | |
| run: pnpm check-types | |
| build-and-e2e: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.4.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install workspace deps | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Install Playwright (Chromium + deps) | |
| run: cd tests/e2e && npm install --no-audit --no-fund && npx playwright install --with-deps chromium | |
| - name: End-to-end (proxy + control + dashboard + browser CORS) | |
| run: pnpm test:e2e |