fix: Resolve type and build errors #127
Workflow file for this run
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: End to end tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
env: | |
CI: 1 | |
jobs: | |
build: | |
name: 'End to end tests' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Cache Node Modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: yarn install | |
- name: Check Yarn installation | |
run: yarn --version | |
- name: Log Node.js version | |
run: node -v | |
- name: Log Yarn version | |
run: yarn -v | |
- name: Log installed packages and versions | |
run: yarn info | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Verify Playwright Browsers Installation | |
run: npx playwright install | |
- name: Start Development Server | |
run: yarn dev & | |
working-directory: apps/examples | |
- name: Wait for Server to be Ready | |
run: | | |
for i in `seq 1 30`; do | |
curl --silent --fail http://localhost:5420/end-to-end && break | |
sleep 5 | |
done | |
- name: Run Playwright tests | |
run: xvfb-run yarn e2e | |
working-directory: apps/examples |