Skip to content

Refactor: use Worker only in DEV #1866

Refactor: use Worker only in DEV

Refactor: use Worker only in DEV #1866

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm test
e2e:
name: E2E on ${{ matrix.os }} (Node ${{ matrix.version }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
version: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm run compile
- name: Install Playwright's dependencies
run: pnpm playwright install --with-deps
- run: pnpm run e2e
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: test-results-main
path: ./test-results
if-no-files-found: ignore