add codegen to part of the workflow #2882
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
- pull_request | |
- push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install Data Connect Toolkit | |
run: npm install -g [email protected] | |
- name: Check Snippets | |
run: python scripts/checksnippets.py | |
# TODO(thatfiredev): remove this once github.com/firebase/quickstart-android/issues/1672 is fixed | |
- name: Copy mock google_services.json | |
run: ./copy_mock_google_services_json.sh | |
- name: Build with Gradle (Pull Request) | |
run: ./build_pull_request.sh | |
if: github.event_name == 'pull_request' | |
- name: Build with Gradle (Push) | |
run: ./gradlew clean ktlint assemble | |
if: github.event_name != 'pull_request' |