Skip to content

chore: print cleanup #798

chore: print cleanup

chore: print cleanup #798

Workflow file for this run

name: E2E tests
on:
push:
paths:
- ".github/workflows/e2e_tests.yml"
- ".github/workflows/init-workspace/action.yml"
- 'designer_v2/**'
- 'core/**'
- 'flutter_common/**'
workflow_dispatch:
jobs:
drive_web:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Await potential publishing on Pub.dev
uses: johannesvedder/await-workflow@v1
with:
workflowId: 'publish_pubdev.yml'
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Init workspace
uses: ./.github/workflows/init-workspace
- name: Setup ChromeDriver
uses: nanasess/setup-chromedriver@v2
- name: Enable web support
run: flutter config --enable-web
- name: Prepare environment
run: |
dart pub get
dart pub global activate melos
melos bootstrap
- name: Prepare Supabase CI Seed
run: |
cp supabase/seed-ci.sql supabase/seed.sql
- name: Set up Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest
- name: Start Supabase
run: |
supabase start -x studio,imgproxy
- name: Configure local StudyU environment
run: |
cp flutter_common/lib/envs/.env.local.example flutter_common/lib/envs/.env.local
LC_ALL=C sed -i.bak '/STUDYU_SUPABASE_PUBLIC_ANON_KEY/d' flutter_common/lib/envs/.env.local
echo "STUDYU_SUPABASE_PUBLIC_ANON_KEY=$(supabase status -o env | grep ANON_KEY | cut -d'=' -f2)" >> flutter_common/lib/envs/.env.local
- name: Start Chrome Driver
run: |
export DISPLAY=:99
chromedriver --port=4444 &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Run Flutter E2E tests
working-directory: ./designer_v2
run: |
flutter drive --driver=test_driver/integration_driver.dart \
--target=integration_test/app_test.dart -d web-server \
--dart-define="STUDYU_ENV=.env.local"