Skip to content

Commit 3f46ae2

Browse files
committed
Update GitHub workflows
1 parent cd5b070 commit 3f46ae2

File tree

2 files changed

+87
-1
lines changed

2 files changed

+87
-1
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github: skydoves
2-
custom: ["https://www.paypal.me/skydoves", "https://www.buymeacoffee.com/skydoves"]
2+
custom: ["https://www.android.skydoves.me/", "https://github.com/doveletter"]

.github/workflows/android.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
lint:
11+
name: Spotless check
12+
runs-on: macos-latest
13+
steps:
14+
- name: Check out code
15+
uses: actions/[email protected]
16+
- name: Set up JDK
17+
uses: actions/[email protected]
18+
with:
19+
distribution: 'zulu'
20+
java-version: 21
21+
- name: spotless
22+
run: ./gradlew spotlessCheck
23+
24+
api_check:
25+
name: API check
26+
runs-on: macos-latest
27+
steps:
28+
- name: Check out code
29+
uses: actions/[email protected]
30+
- name: Set up JDK
31+
uses: actions/[email protected]
32+
with:
33+
distribution: 'zulu'
34+
java-version: 21
35+
- name: API check
36+
run: ./gradlew apiCheck
37+
38+
build:
39+
name: Build and Tests
40+
runs-on: macos-latest
41+
steps:
42+
- uses: actions/[email protected]
43+
44+
- name: set up JDK
45+
uses: actions/[email protected]
46+
with:
47+
distribution: 'zulu'
48+
java-version: 21
49+
50+
- name: Cache Gradle and wrapper
51+
uses: actions/cache@v4
52+
with:
53+
path: |
54+
~/.gradle/caches
55+
~/.gradle/wrapper
56+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
57+
restore-keys: |
58+
${{ runner.os }}-gradle-
59+
60+
- name: Make Gradle executable
61+
run: chmod +x ./gradlew
62+
63+
- name: Build with Gradle
64+
run: |
65+
./gradlew --scan --stacktrace \
66+
assemble -x :benchmark-landscapist:pixel6api31Setup -x :benchmark-landscapist:pixel6api31NonMinifiedReleaseAndroidTest -x :benchmark-landscapist:collectNonMinifiedReleaseBaselineProfile
67+
68+
- name: Run unit tests
69+
run: |
70+
./gradlew --scan --stacktrace \
71+
testDebugUnitTest
72+
73+
stability_check:
74+
name: Compose Stability Check
75+
runs-on: macos-latest
76+
needs: build
77+
steps:
78+
- name: Check out code
79+
uses: actions/[email protected]
80+
- name: Set up JDK
81+
uses: actions/[email protected]
82+
with:
83+
distribution: 'zulu'
84+
java-version: 21
85+
- name: compose stability check
86+
run: ./gradlew stabilityCheck

0 commit comments

Comments
 (0)