12
12
branches : [ "main" ]
13
13
14
14
jobs :
15
+ integration-test :
16
+ name : Run Tests
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - uses : subosito/flutter-action@v2
21
+ with :
22
+ channel : stable
23
+ flutter-version : ' 3.22.2'
24
+ - run : flutter pub get
25
+ - run : flutter config --enable-web
26
+ - name : test
27
+ env :
28
+ TEST_INSTANCE_URL : ${{ secrets.TEST_INSTANCE_URL }}
29
+ run : |
30
+ chromedriver/chromedriver --port=4444 &
31
+ flutter drive \
32
+ --dart-define=ELN_USERNAME=complat.user1@eln.edu \
33
+ --dart-define=ELN_PASSWORD=@complat \
34
+ --dart-define=ELN_URL=$TEST_INSTANCE_URL \
35
+ --driver=test_driver/integration_test.dart \
36
+ --target=integration_test/app_test.dart
37
+
15
38
build :
16
39
runs-on : ubuntu-latest
17
40
@@ -30,37 +53,23 @@ jobs:
30
53
echo flutter.targetSdkVersion=33 >> ./android/local.properties
31
54
echo flutter.compileSdkVersion=33 >> ./android/local.properties
32
55
33
- - name : test
34
- env :
35
- TEST_INSTANCE_URL : ${{ secrets.TEST_INSTANCE_URL }}
36
- run : |
37
- echo "no testing"
38
-
39
- # flutter packages pub run build_runner build
40
- # flutter drive \
41
- # --dart-define=ELN_USERNAME=complat.user1@eln.edu \
42
- # --dart-define=ELN_PASSWORD=@complat \
43
- # --dart-define=ELN_URL=$TEST_INSTANCE_URL
44
- # --driver=test_driver/integration_test.dart \
45
- # --target=integration_test/app_test.dart
46
-
47
56
- name : set key properties
48
57
# keyPassword="${{ secrets.KEY_PASSWORD }}"
49
58
# storePassword="${{ secrets.STORE_PASSWORD }}"
50
59
# keyAlias="${{ secrets.KEY_ALIAS }}
51
60
# storeFile=keystore.jks
52
61
run : |
53
- echo keyPassword=" ${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
54
- echo storePassword=" ${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
55
- echo keyAlias=" ${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
56
- echo storeFile=keystore.jks >> ./android/key.properties
62
+ echo " keyPassword=${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
63
+ echo " storePassword=${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
64
+ echo " keyAlias=${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
65
+ echo " storeFile=keystore.jks" >> ./android/key.properties
57
66
echo "${{ secrets.KEY_JKS }}" | base64 --decode > ./android/app/keystore.jks
67
+ echo
58
68
59
- # - run: flutter build apk
60
-
69
+
61
70
- run : flutter build appbundle
62
71
63
- - name : Upload artefact
72
+ - name : Upload aab artefact
64
73
uses : actions/upload-artifact@v4
65
74
with :
66
75
name : appbundle
0 commit comments