Skip to content

Commit

Permalink
Add Android unit tests to reference-test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth committed Nov 10, 2023
1 parent a3acc21 commit e1782b7
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,57 @@ jobs:
with:
name: build-log.txt
path: ./BrowserServicesKit/build-log.txt

AndroidUnit:
name: Android unit tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
path: 'reference-tests'
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: 'duckduckgo/android'
path: 'android'
submodules: recursive

- name: Link reference-tests
working-directory: reference-tests
run: npm link

- name: Setup NPM deps
working-directory: android
run: |
npm install -g copy-files-from-to
npm ci
npm link @duckduckgo/reference-tests
- name: Copy files
working-directory: android
run: copy-files-from-to

- name: Set up JDK 17
uses: actions/setup-java@v3
working-directory: android
with:
java-version: '17'
distribution: 'adopt'

- name: JVM tests
uses: gradle/gradle-build-action@v2
with:
arguments: jvm_tests
build-root-directory: android

- name: Bundle the JVM checks report
if: always()
run: find ./android/ -type d -name 'reports' | zip -@ -r unit-tests-report.zip

- name: Upload the JVM checks report
if: always()
uses: actions/upload-artifact@v3
with:
name: unit-tests-report
path: unit-tests-report.zip

0 comments on commit e1782b7

Please sign in to comment.