Skip to content

Commit

Permalink
Merge pull request #620 from hpi-studyu/chore/update-cli
Browse files Browse the repository at this point in the history
chore: remove outdated cli
  • Loading branch information
johannesvedder committed May 23, 2024
2 parents 90a388f + 742f6b5 commit 9985dcd
Show file tree
Hide file tree
Showing 42 changed files with 98 additions and 2,793 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,50 @@ jobs:
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: Initialize Supabase

- name: Prepare environment
run: |
dart pub global activate melos
melos bootstrap
dart pub get
docker network create studyu_network || true
cp docker/supabase/.env.example docker/supabase/.env
cp docker/proxy/.env.example docker/proxy/.env
cp flutter_common/lib/envs/.env.local.example flutter_common/lib/envs/.env.local
docker compose -f docker/supabase/docker-compose-db.yml up -d
docker compose -f docker/supabase/docker-compose.yml up -d
docker compose -f docker/proxy/docker-compose-proxy.yml up -d
while [ "$(docker inspect --format='{{.State.Health.Status}}' supabase-db)" != "healthy" ]; do sleep 1; done
docker exec -i supabase-db psql -U postgres -d postgres < ./database/app_config.sql.example
- name: Set up Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest

- name: Prepare database seed
run: |
cat database/studyu-schema.sql > docker/supabase/seed.sql
cat database/app_config.sql.example >> docker/supabase/seed.sql
- name: Start Supabase database
working-directory: docker
run: |
supabase db start
- 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: |
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ app.*.symbols
pubspec_overrides.yaml

# Selfhost
backup/
.cli_config
flutter_common/lib/envs/.env.local

# generated git project files
Expand Down
3 changes: 0 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ executing Melos scripts. Use `melos <script>` to run scripts from the
[`melos.yaml` file](melos.yaml). You can find more information about Melos in
the [Melos documentation](https://melos.invertase.dev/)

When developing locally, you might need to host your own Supabase instance. For
this, follow the instructions [here](docker/README.md).

## Repository Overview

We have different Flutter/Dart packages all contained in this monorepo. The
Expand Down
3 changes: 0 additions & 3 deletions docker/.gitignore

This file was deleted.

118 changes: 0 additions & 118 deletions docker/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions docker/load-test/k6.js

This file was deleted.

Loading

0 comments on commit 9985dcd

Please sign in to comment.