From 16e05783d353c55966756ac7a146b656596ecb43 Mon Sep 17 00:00:00 2001 From: Kat Kuan <843428+kkuan2011@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:29:34 -0800 Subject: [PATCH] Add GitHub actions --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a1c3a76c --- /dev/null +++ b/.github/workflows/main.yml @@ -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 + run: ./gradlew :app:assembleDebug