Skip to content

test(core): set up playwright component tests #5577

test(core): set up playwright component tests

test(core): set up playwright component tests #5577

Workflow file for this run

name: 'CI'
on:
push:
branches: [master]
pull_request:
branches:
- master
- feature/*
jobs:
jest-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Restore puppeteer cache
uses: actions/cache@v4
with:
path: ~/.cache/puppeteer
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- run: npm rebuild full-icu
- name: Run Jest Tests
run: npm run test-jest -- --ci
playwright-component-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- 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:
- uses: actions/checkout@v4
- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Restore puppeteer cache
uses: actions/cache@v4
with:
path: ~/.cache/puppeteer
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- run: npm ci
- 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 }}