Remove UI testing and publish JUnit results as artifact on build

This commit is contained in:
William Brawner 2024-07-01 20:56:04 -06:00
parent 68b649da44
commit 81e519d650
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -33,26 +33,37 @@ jobs:
with: with:
arguments: testDebugUnitTest arguments: testDebugUnitTest
- name: Publish JUnit Results - name: Publish JUnit Results
uses: dorny/test-reporter@v1 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: Unit Test Results name: Unit Test Results
path: "*/build/test-results/*/*.xml" path: "*/build/test-results/*/*.xml"
reporter: java-junit if-no-files-found: error
fail-on-error: true # TODO: Uncomment the following once I get UI tests written
ui_tests: # ui_tests:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
name: Run UI Tests # name: Run UI Tests
needs: # needs:
- validate # - validate
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: set up JDK # - name: set up JDK
uses: https://git.wbrawner.com/actions/setup-java@v3 # uses: https://git.wbrawner.com/actions/setup-java@v3
with: # with:
distribution: 'zulu' # distribution: 'zulu'
java-version: '17' # java-version: '17'
- name: Build with Gradle # - name: Build with Gradle
uses: https://git.wbrawner.com/gradle/gradle-build-action@v2 # uses: https://git.wbrawner.com/gradle/gradle-build-action@v2
with: # with:
arguments: assembleDebug assembleDebugAndroidTest # arguments: assembleDebug assembleDebugAndroidTest
# - name: Grant execute permission for flank_auth.sh
# run: chmod +x flank_auth.sh
# - name: Add auth for flank
# env:
# GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }}
# run: |
# ./flank_auth.sh
# - name: Run UI tests
# uses: https://git.wbrawner.com/gradle/gradle-build-action@v2
# with:
# arguments: runFlank