Skip to content

Commit

Permalink
Add a workflow to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussemNasri committed Apr 21, 2024
1 parent 79f8df3 commit 5754385
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,26 @@ jobs:
- name: Build ${{ inputs.flavour }} Flavour
run: ./gradlew ${{ inputs.flavour }}

unit-tests:
runs-on: ubuntu-latest
# to prevent running unit tests twice; on the internal and external workflow.
if: inputs.internal == false
needs: [ build ]

steps:
- name: Unit tests (Debug)
run: ./gradlew :app:testNoapiX64GeckoGenericDebugUnitTest
./gradlew :app:testNoapiArm64GeckoGenericDebugUnitTest

- name: Unit tests (Release)
run: ./gradlew :app:testNoapiX64GeckoGenericReleaseUnitTest
./gradlew :app:testNoapiArm64GeckoGenericReleaseUnitTest

deploy:
runs-on: ubuntu-latest
needs: [build, unit-tests]

steps:
- name: Upload APK (without WebXR support) to Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5754385

Please sign in to comment.