Bump androidx.work:work-testing from 2.7.1 to 2.10.0 #985
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 1 | |
name: Unit test on Push | |
## Actions that will be executed when you push code currently none | |
on: | |
push: | |
## 2 | |
jobs: | |
# 3 Unit Test Script | |
unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: set up JDK 1.8 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Update Username from Secrets | |
env: | |
MOCK_USERNAME: ${{ secrets.TELNYX_SIP_USER }} | |
run: echo MOCK_USERNAME="$MOCK_USERNAME" > ./local.properties | |
- name: Add new line | |
run: echo -e "\n" >> ./local.properties | |
- name: Update Password from Secrets | |
env: | |
MOCK_PASSWORD: ${{ secrets.TELNYX_SIP_PASSWORD }} | |
run: echo MOCK_PASSWORD="$MOCK_PASSWORD" >> ./local.properties | |
- name: Clean | |
run: ./gradlew clean | |
- name: Read local.properties | |
id: properties | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./local.properties | |
- name: Echo local.properties | |
run: echo "${{ steps.package.outputs.content }}" | |
- name: Assemble app debug APK | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Unit tests | |
run: ./gradlew test |