Skip to content

Commit 5ecbe9a

Browse files
authored
ci(gradle): create android.yml
Create android.yml
1 parent 06f6c2b commit 5ecbe9a

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/README.md'
7+
- '**/doc-dev/*'
8+
branches:
9+
- 'main'
10+
- 'release-*'
11+
- '*-feature-*'
12+
- '*-enhancement-*'
13+
- '*-hotfix-*'
14+
- '*-bug-*'
15+
- '*-documentation-*'
16+
- 'BF-*'
17+
- 'FE-*'
18+
- 'PU-*'
19+
- 'DOC-*'
20+
tags:
21+
- '*' # Push events to matching *, i.e. 1.0.0 v1.0, v20.15.10
22+
pull_request:
23+
paths-ignore:
24+
- '**/README.md'
25+
types: # https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
26+
- opened
27+
- reopened
28+
- closed
29+
# branches:
30+
# - 'main'
31+
# - 'release-*'
32+
# - 'DOC-*'
33+
# - 'hotfix-*'
34+
35+
jobs:
36+
build:
37+
strategy:
38+
matrix:
39+
jdk:
40+
- '17'
41+
os:
42+
# - macos-latest
43+
# - windows-latest
44+
- ubuntu-latest
45+
runs-on: ${{ matrix.os }}
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: set up JDK ${{ matrix.jdk }}
50+
uses: actions/setup-java@v4
51+
with:
52+
java-version: ${{ matrix.jdk }}
53+
distribution: 'temurin'
54+
cache: gradle
55+
56+
- name: Grant execute permission for gradlew
57+
run: chmod +x gradlew
58+
59+
- name: Build init with Gradle
60+
run: ./gradlew clean buildEnvironment --warning-mode all
61+
- name: Build test with Gradle
62+
run: |
63+
./gradlew plugin:test
64+
./gradlew demo:test
65+
- name: Build test coverage with Gradle
66+
run: |
67+
./gradlew plugin:jacocoDebugReport
68+
- name: Build assemble debug with Gradle
69+
run: |
70+
./gradlew plugin:assembleDebug
71+
./gradlew demo:assembleDebug

0 commit comments

Comments
 (0)