Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-ai-catalog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build AI Catalog Android App

on:
push:
branches: [ "main" ]
paths:
- 'ai-catalog/**'
pull_request:
branches: [ "main" ]
paths:
- 'ai-catalog/**'

jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradlew executable
working-directory: ./ai-catalog
run: chmod +x ./gradlew

- name: Build AI Catalog app
working-directory: ./ai-catalog
run: ./gradlew :app:assembleDebug

- name: Run AI Catalog app unit tests
working-directory: ./ai-catalog
run: ./gradlew :app:testDebugUnitTest