Code quality improvementsto controller embedding deleteEmbeddingsActi… #98
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate-and-test: | |
| name: Node v${{ matrix.node-version }} Pipeline | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] # Matches the Backstage framework engines range ("22 || 24") | |
| env: | |
| CI: true | |
| NODE_OPTIONS: --max-old-space-size=4096 # Preserves Backstage memory buffer fix | |
| steps: | |
| - name: 📂 Checkout Repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: 🟢 Setup Node.js v${{ matrix.node-version }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: 📦 Install Workspace Dependencies | |
| uses: backstage/actions/yarn-install@2cd6978b476cbdc39fec48346f8b6ca13199dd6a # v0.7.8 | |
| with: | |
| cache-prefix: ${{ runner.os }}-node-${{ matrix.node-version }} | |
| - name: 🏎️ Initialize Turborepo Remote GitHub Actions Cache | |
| uses: rharkor/caching-for-turbo@2238fae6eb9a9936f92356f54cb3660200d105e7 # v2.5.1 | |
| - name: ✨ Verify Source Formatting (Prettier) | |
| run: yarn prettier --check . | |
| - name: 🛠️ Execute Turbo Build, Lint & Typecheck | |
| run: yarn turbo run build lint typecheck | |
| - name: 🟢 Run Automated Unit Test Harness | |
| run: yarn turbo run test | |
| - name: 🎭 Provision Playwright Engine | |
| run: npx playwright install --with-deps chromium | |
| - name: 🔐 Prepare Mock Local Storage Auth File | |
| run: mkdir -p playwright/.auth && echo '{}' > playwright/.auth/login.json | |
| - name: 🚀 Run Playwright End-to-End Tests | |
| run: npx playwright test | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PLAYWRIGHT_BASE_URL: http://localhost:3000 | |
| - name: 📊 Upload Playwright Report on Failure | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report-node-${{ matrix.node-version }} | |
| path: playwright-report | |
| retention-days: 1 |