-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from metalurgical/add_ci
feat: add CI
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
CI: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
api-level: | ||
- 29 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: temurin | ||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Test | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
channel: canary | ||
profile: "Nexus S" | ||
api-level: '${{ matrix.api-level }}' | ||
force-avd-creation: false | ||
emulator-options: >- | ||
-no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio | ||
-no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: ./gradlew connectedCheck |