Skip to content

Commit fbc5757

Browse files
Merge pull request #17 from google-developer-training/jv/gha
Create build.yml
2 parents bf79114 + b288b05 commit fbc5757

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- starter
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set Up JDK
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'zulu' # See 'Supported distributions' for available options
19+
java-version: '17'
20+
cache: 'gradle'
21+
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
25+
- name: Setup Android SDK
26+
uses: android-actions/setup-android@v3
27+
28+
- name: Build project and run local and device tests
29+
run: ./gradlew :app:assembleDebug

0 commit comments

Comments
 (0)