Skip to content

Commit

Permalink
Reenable the tests for the release
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Oct 26, 2023
1 parent da9fabd commit ca0a196
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/android-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ on:
workflow_dispatch:

jobs:
# test:
# name: Run Tests
# runs-on: macos-latest
#
# strategy:
# matrix:
# api-level: [ 26, 31 ]
# target: [ default, google_apis ]
#
# steps:
# - name: Checkout the code
# uses: actions/checkout@v1
#
# - name: Set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: 11
# distribution: 'adopt'
#
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
#
# - name: Unit Tests
# run: ./gradlew test --stacktrace
test:
name: Run Tests
runs-on: macos-latest

strategy:
matrix:
api-level: [ 26, 31 ]
target: [ default, google_apis ]

steps:
- name: Checkout the code
uses: actions/checkout@v1

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- name: Unit Tests
run: ./gradlew test --stacktrace

# Need to work through a permissions error to get these working
# - name: Instrumentation Tests
Expand All @@ -50,12 +50,12 @@ jobs:
# script: ./gradlew test check connectedCheck -x lint --stacktrace

# Only upload the reports on failure
# - name: Upload Reports
# uses: actions/upload-artifact@v2
# with:
# name: Test-Reports
# path: networksurvey/build/reports
# if: failure()
- name: Upload Reports
uses: actions/upload-artifact@v2
with:
name: Test-Reports
path: networksurvey/build/reports
if: failure()

bumpVersion:
# needs: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Network Survey CDR Debug APK
path: networksurvey/build/outputs/apk/cdr/debug/${{ env.base_name }}-cdr-no-tracking-debug.apk
path: networksurvey/build/outputs/apk/cdr/debug/${{ env.base_name }}-cdr-debug.apk


test:
Expand Down

0 comments on commit ca0a196

Please sign in to comment.