Skip to content

Merge branch 'is-coin-favourite-model' #135

Merge branch 'is-coin-favourite-model'

Merge branch 'is-coin-favourite-model' #135

Workflow file for this run

name: Android CI
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Access API_KEY
env:
API_KEY: ${{ secrets.API_KEY }}
run: echo API_KEY=\"$API_KEY\" > ./apikey.properties
- name: Cache Gradle and wrapper
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Run unit tests
run: ./gradlew testDebugUnitTest