-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.08 KB
/
android-ci.yml
File metadata and controls
43 lines (38 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: android-ci
on:
workflow_call: # https://docs.github.com/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
jobs:
build:
name: build-jdk
strategy:
matrix:
jdk:
- '17'
os:
# - macos-latest
# - windows-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build init with Gradle
run: ./gradlew clean buildEnvironment --warning-mode all
- name: Build test with Gradle
run: |
./gradlew plugin:test
./gradlew demo:test
- name: Build test coverage with Gradle
run: |
./gradlew plugin:jacocoDebugReport
- name: Build assemble debug with Gradle
run: |
./gradlew plugin:assembleDebug
./gradlew demo:assembleDebug