Skip to content

- Set Initial callState for Call #937

- Set Initial callState for Call

- Set Initial callState for Call #937

## 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