Skip to content

Commit

Permalink
💚 プルリクエスト時の Android CI を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Nov 25, 2023
1 parent c5de8aa commit 8c2839a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Android CI"

on:
- pull_request_target
- workflow_dispatch

# Cancel any current or previous job from the same PR
concurrency:
group: android-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'

- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2.9.0

- name: Unit Tests
run: ./gradlew :app:android:testDevDebugUnitTest

- name: Build
run: ./gradlew :app:android:assembleDevDebug

0 comments on commit 8c2839a

Please sign in to comment.