Skip to content

fix: Resolve type and build errors #131

fix: Resolve type and build errors

fix: Resolve type and build errors #131

Workflow file for this run

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: Run script to generate CSS
run: |
echo "Current directory: $(pwd)"
node packages/tldraw/scripts/copy-css-files.mjs
- name: Verify CSS file exists
run: |
if [ -f packages/tldraw/tldraw.css ]; then
echo "CSS file exists"
else
echo "CSS file is missing"
exit 1
fi
- 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 the 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 http://localhost:5420 && break
sleep 1
done
- name: Run Playwright tests
run: xvfb-run yarn e2e
working-directory: apps/examples
env:
CI: 1
- name: Cleanup
run: kill $(lsof -t -i:5420) || true