Skip to content

Saving history

Saving history #104

Workflow file for this run

name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Copy google-service
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE_JSON }}
run: echo $GOOGLE_SERVICE | base64 --decode --ignore-garbage > ./app/google-services.json
- name: copy dialogflow-secret
env:
DIALOGFLOW_SECRET: ${{ secrets.DIALOGFLOW_SECRET_JSON }}
run: |
mkdir -p ./app/src/main/res/raw
echo $DIALOGFLOW_SECRET | base64 --decode --ignore-garbage > ./app/src/main/res/raw/dialogflow_secret.json
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run Android Lint
run: ./gradlew lint
- name: Run Unit Test
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload apk file
uses: actions/upload-artifact@v3
with:
name: apk
path: |
app/build/outputs/apk/ads/debug/app-ads-debug.apk
app/build/outputs/apk/noAds/debug/app-noAds-debug.apk