File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -122,3 +122,56 @@ jobs:
122122 with :
123123 name : build-log.txt
124124 path : ./BrowserServicesKit/build-log.txt
125+
126+ AndroidUnit :
127+ name : Android unit tests
128+ runs-on : ubuntu-latest
129+
130+ steps :
131+ - uses : actions/checkout@v3
132+ with :
133+ path : ' reference-tests'
134+ - name : Checkout repository
135+ uses : actions/checkout@v3
136+ with :
137+ repository : ' duckduckgo/android'
138+ path : ' android'
139+ submodules : recursive
140+
141+ - name : Link reference-tests
142+ working-directory : reference-tests
143+ run : npm link
144+
145+ - name : Setup NPM deps
146+ working-directory : android
147+ run : |
148+ npm install -g copy-files-from-to
149+ npm ci
150+ npm link @duckduckgo/reference-tests
151+
152+ - name : Copy files
153+ working-directory : android
154+ run : copy-files-from-to
155+
156+ - name : Set up JDK 17
157+ uses : actions/setup-java@v3
158+ with :
159+ java-version : ' 17'
160+ distribution : ' adopt'
161+
162+ - name : JVM tests
163+ uses : gradle/gradle-build-action@v2
164+ with :
165+ arguments : jvm_tests
166+ build-root-directory : android
167+
168+ - name : Bundle the JVM checks report
169+ if : always()
170+ run : find ./android/ -type d -name 'reports' | zip -@ -r unit-tests-report.zip
171+
172+ - name : Upload the JVM checks report
173+ if : always()
174+ uses : actions/upload-artifact@v3
175+ with :
176+ name : unit-tests-report
177+ path : unit-tests-report.zip
You can’t perform that action at this time.
0 commit comments