Merge pull request #393 from OxDev-max/create-button-component-variants #6
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: Frontend Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-tests.yml" | |
| push: | |
| branches: [master] | |
| paths: | |
| - "frontend/**" | |
| jobs: | |
| frontend-quality: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Unit and integration tests | |
| run: npm run test:unit && npm run test:hooks && npm run test:perf | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: E2E tests | |
| run: npm run test:e2e | |
| - name: Visual regression tests | |
| run: npm run test:visual |