test(core): set up playwright component tests #5580
This file contains 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: [master] | |
pull_request: | |
branches: | |
- master | |
- feature/* | |
jobs: | |
jest-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Node.js Setup | |
uses: ./.github/actions/node-setup | |
- name: Restore puppeteer cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/puppeteer | |
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- run: npm rebuild full-icu | |
- name: Run Jest Tests | |
run: npm run test-jest -- --ci | |
playwright-component-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Node.js Setup | |
uses: ./.github/actions/node-setup | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright Component Tests | |
run: CI=true npm run test-ct | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Node.js Setup | |
uses: ./.github/actions/node-setup | |
- name: Restore puppeteer cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/puppeteer | |
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: "run linter" | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: npm run lint | |
- run: npm run bundlewatch | |
env: | |
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |