fix(index.css,Tooltip): CSS tokens undocumented in file, color-scheme… #447
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: Test & Lint | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run linter | |
| run: npm run lint | |
| - name: Typecheck | |
| run: npx tsc --noEmit -p tsconfig.app.json | |
| - name: Build | |
| run: npm run build | |
| - name: Check bundle size | |
| run: npm run size | |
| - name: Verify Exports | |
| run: npm run test:exports | |
| - name: Run tests | |
| run: npm test | |
| # Accessibility audit runs once (not per Node version matrix entry) | |
| # to avoid redundant browser automation. | |
| - name: Install matching chromedriver | |
| if: matrix.node-version == '22.x' | |
| run: npx browser-driver-manager install chrome | |
| - name: Start demo app | |
| if: matrix.node-version == '22.x' | |
| run: | | |
| npx vite --port 4173 --strictPort & | |
| for i in $(seq 1 30); do | |
| curl -sf http://localhost:4173/ > /dev/null && break | |
| sleep 1 | |
| done | |
| - name: Run accessibility audit (axe) | |
| if: matrix.node-version == '22.x' | |
| run: | | |
| npx axe http://localhost:4173 \ | |
| --save axe-results.json \ | |
| --chrome-options="headless=new,no-sandbox,disable-dev-shm-usage" \ | |
| || true | |
| node scripts/check-axe-critical.mjs axe-results.json | |
| - name: Upload axe results | |
| if: always() && matrix.node-version == '22.x' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: axe-results | |
| path: axe-results.json |