From e0325fc9627d6c85a00241049faa18b56cc302b9 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:25:03 +0000 Subject: [PATCH] feat: Add GitHub workflow for AI Catalog This commit introduces a new GitHub workflow to build and test the AI Catalog application. The workflow is triggered on every push and pull request to the `main` branch that includes changes within the `ai-catalog/` directory. The workflow includes the following steps: - Checks out the repository. - Sets up JDK 17. - Sets up Gradle. - Makes the `gradlew` script executable. - Builds the `ai-catalog` application (`:app:assembleDebug`). - Runs unit tests for the `ai-catalog` application (`:app:testDebugUnitTest`). --- .github/workflows/build-ai-catalog.yml | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build-ai-catalog.yml diff --git a/.github/workflows/build-ai-catalog.yml b/.github/workflows/build-ai-catalog.yml new file mode 100644 index 00000000..847c55a8 --- /dev/null +++ b/.github/workflows/build-ai-catalog.yml @@ -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