-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.44 KB
/
test-frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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