@@ -12,10 +12,23 @@ jobs:
1212 uses : actions/setup-ruby@v1
1313 with :
1414 ruby-version : ' 2.7'
15- - name : set up JDK 1.8
15+ - name : set up JDK 11
1616 uses : actions/setup-java@v1
1717 with :
18- java-version : 1.8
18+ distribution : ' zulu'
19+ java-version : ' 11'
20+ - name : set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : ' 3.10'
24+ - name : generate ksProp file
25+ run : python scripts/generateKsPropFile.py
26+ - name : create google-services.json file
27+ run : cat app/google-services.json | base64
28+ - name : update google-services.json file
29+ env :
30+ DATA : ${{ secrets.GOOGLE_SERVICES_JSON }}
31+ run : echo $DATA > app/google-services.json
1932 - name : setup fastlane
2033 run : bundle install
2134 - name : run unit tests
@@ -30,23 +43,53 @@ jobs:
3043 runs-on : ubuntu-latest
3144 steps :
3245 - uses : actions/checkout@v1
33- - name : set up JDK 1.8
46+ - name : set up JDK 11
3447 uses : actions/setup-java@v1
3548 with :
36- java-version : 1.8
49+ distribution : ' zulu'
50+ java-version : ' 11'
51+ - name : set up Python
52+ uses : actions/setup-python@v4
53+ with :
54+ python-version : ' 3.10'
55+ - name : generate ksProp file
56+ run : python scripts/generateKsPropFile.py
57+ - name : create google-services.json file
58+ run : cat app/google-services.json | base64
59+ - name : update google-services.json file
60+ env :
61+ DATA : ${{ secrets.GOOGLE_SERVICES_JSON }}
62+ run : echo $DATA > app/google-services.json
3763 - name : Lint
38- run : bash ./gradlew lint --stacktrace
64+ run : bash ./gradlew lintDebug
3965 - name : Lint results
4066 uses : actions/upload-artifact@v1
4167 with :
4268 name : app
43- path : app/build/reports/lint-results.html
69+ path : app/build/reports/lint-results-debug .html
4470
4571 ui-test :
4672 runs-on : macOS-latest
4773 steps :
4874 - name : checkout
4975 uses : actions/checkout@v2
76+ - name : set up JDK 11
77+ uses : actions/setup-java@v1
78+ with :
79+ distribution : ' zulu'
80+ java-version : ' 11'
81+ - name : set up Python
82+ uses : actions/setup-python@v4
83+ with :
84+ python-version : ' 3.10'
85+ - name : generate ksProp file
86+ run : python scripts/generateKsPropFile.py
87+ - name : create google-services.json file
88+ run : cat app/google-services.json | base64
89+ - name : update google-services.json file
90+ env :
91+ DATA : ${{ secrets.GOOGLE_SERVICES_JSON }}
92+ run : echo $DATA > app/google-services.json
5093 - name : run tests
5194 uses : reactivecircus/android-emulator-runner@v2
5295 with :
0 commit comments