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 b9a650e commit f4efb09
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,31 @@ jobs:
with:
arguments: ${{ 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)
uses: gradle/gradle-build-action@v3
with:
gradle-version: ${{ inputs.gradle_version }}
run: ./gradlew :app:testNoapiX64GeckoGenericDebugUnitTest
./gradlew :app:testNoapiArm64GeckoGenericDebugUnitTest

- name: Unit tests (Release)
uses: gradle/gradle-build-action@v3
with:
gradle-version: ${{ inputs.gradle_version }}
run: ./gradlew :app:testNoapiX64GeckoGenericReleaseUnitTest
./gradlew :app:testNoapiArm64GeckoGenericReleaseUnitTest

deploy:
runs-on: ubuntu-latest

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

0 comments on commit f4efb09

Please sign in to comment.