Skip to content

Commit

Permalink
Merge pull request #51 from google-developer-training/jose/gha
Browse files Browse the repository at this point in the history
Add CI workflow
  • Loading branch information
JoseAlcerreca authored Dec 9, 2024
2 parents 801b445 + 0b8c52e commit eb8ca72
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set Up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'

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

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Build project and run local and device tests
run: ./gradlew :app:assembleDebug

0 comments on commit eb8ca72

Please sign in to comment.