diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c858b49..6f6fed4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -190,3 +190,39 @@ jobs: - name: Run Lighthouse CI run: npm run test:lighthouse continue-on-error: true + + quality: + name: Quality Gates + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests with coverage + run: npm run test:coverage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + + - name: Build + run: npm run build + + - name: Check bundle size + run: npx bundlesize + + - name: Security audit + run: npm audit --audit-level=moderate + continue-on-error: true \ No newline at end of file