Updated config.yml #10
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
name: Unit Tests | |
on: | |
push: | |
branches: [ "master", "development" ] | |
pull_request: | |
branches: [ "master", "development" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '16' | |
distribution: 'adopt-hotspot' | |
cache: gradle | |
- name: write keystore.properties file | |
env: | |
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} | |
run: | | |
printenv KEYSTORE_PROPERTIES | |
touch keystore.properties | |
echo "$KEYSTORE_PROPERTIES" >> keystore.properties | |
cat keystore.properties | |
- name: Decode Keystore | |
env: | |
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }} | |
run: | | |
echo $ENCODED_KEYSTORE | base64 --decode > shotclockapp.jks | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run Unit Tests | |
run: ./gradlew test |