Feature/66607 create asset #546
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: Test Frontend | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test_frontend: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 2.19.6 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.12' | |
channel: 'stable' | |
- name: Disable dart/flutter analytics | |
run: dart --disable-analytics && flutter config --no-analytics | |
- name: Verify formatting | |
run: cd ./frontend/app && dart format --output=none --set-exit-if-changed . | |
- name: Install dependencies | |
run: cd ./frontend/app && flutter pub get | |
- name: Run build_runner | |
run: cd ./frontend/app && flutter pub run build_runner build --delete-conflicting-outputs | |
env: | |
API_ADDRESS: http://127.0.0.1 | |
FRONTEND_ADDRESS: http://127.0.0.1 | |
KEYCLOAK_ADDRESS: http://127.0.0.1 | |
KEYCLOAK_FRONTEND_CLIENT: test | |
KEYCLOAK_REALM: test | |
FRONTEND_LOG_LEVEL: warning | |
FRONTEND_REDIRECT_URI_MOBILE: http://127.0.0.1 | |
PROXY_DEFAULT_SCHEME: http | |
- name: Analyze project source | |
run: cd ./frontend/app && dart analyze --fatal-infos | |
- name: Run unit tests | |
run: cd ./frontend/app && flutter test --no-pub --no-test-assets --reporter github |