Skip to content

Commit

Permalink
[19310] Created an android ci for tripkit-android repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-jsonjuliane committed Dec 26, 2023
1 parent d4589b9 commit 1824c1c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Android CI

on:
push:
branches: [ release/test ]
pull_request:
branches: [ release/test ]

jobs:
build:
name: Build and Test
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'

- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew

- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.android/build-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build Release APK
run: ./gradlew clean assembleRelease

- name: Run tests
run: ./gradlew test

- name: List All Directories and Subdirectories of Root
run: find . -type d

0 comments on commit 1824c1c

Please sign in to comment.