Skip to content

Commit

Permalink
Add test workflow (#61)
Browse files Browse the repository at this point in the history
* Add test workflow

* Add jdk setting step

* Add caching gradle cache step

* Add setting up android sdk step
  • Loading branch information
easternkite authored Dec 2, 2024
1 parent daf180c commit 3870ef3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/check_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Check Test
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Restore cached gradle
id: cache-gradle-restore
uses: actions/cache/restore@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-caches

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

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

- name: Check Unit Test
run: ./gradlew :eungabi:testDebugUnitTest

- name: Check Desktop Test
run: ./gradlew :eungabi:desktopTest

- name: Cache gradle caches
id: cache-gradle-save
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ steps.cache-gradle-restore.outputs.cache-primary-key }}

0 comments on commit 3870ef3

Please sign in to comment.