Skip to content

Commit e967377

Browse files
authored
Use Android CI from common workflows (#46)
1 parent 0a68ffb commit e967377

File tree

1 file changed

+5
-71
lines changed

1 file changed

+5
-71
lines changed

.github/workflows/android.yml

Lines changed: 5 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -16,75 +16,9 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
env:
20-
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }}
21-
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }}
22-
BUILD_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_CACHE_AWS_ACCESS_KEY_ID }}
23-
BUILD_CACHE_AWS_SECRET_KEY: ${{ secrets.BUILD_CACHE_AWS_SECRET_KEY }}
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
GITHUB_PR_NUM: ${{ github.event.pull_request.number }}
26-
2719
jobs:
28-
build:
29-
name: Compile
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v3
33-
34-
- uses: GetStream/android-ci-actions/actions/setup-java@main
35-
36-
- uses: GetStream/android-ci-actions/actions/gradle-cache@main
37-
38-
- name: Make Gradle executable
39-
run: chmod +x ./gradlew
40-
41-
- name: Build with Gradle
42-
run: ./gradlew assembleDebug --scan
43-
44-
spotless:
45-
name: Spotless
46-
runs-on: ubuntu-latest
47-
steps:
48-
- name: Check out code
49-
uses: actions/[email protected]
50-
- uses: GetStream/android-ci-actions/actions/setup-java@main
51-
- name: Run spotless check
52-
run: ./gradlew spotlessCheck --scan
53-
lint:
54-
name: Lint
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Check out code
58-
uses: actions/[email protected]
59-
- uses: GetStream/android-ci-actions/actions/setup-java@main
60-
- name: Run lint check
61-
run: ./gradlew lint
62-
63-
unitTest:
64-
name: Unit Tests
65-
runs-on: ubuntu-latest
66-
67-
steps:
68-
- name: Checkout
69-
uses: actions/checkout@v3
70-
71-
- uses: GetStream/android-ci-actions/actions/setup-java@main
72-
73-
- uses: GetStream/android-ci-actions/actions/gradle-cache@main
74-
75-
- name: Run unit tests
76-
run: ./gradlew testCoverage --scan --stacktrace
77-
78-
- name: Unit tests core results
79-
uses: actions/upload-artifact@v4
80-
if: failure()
81-
with:
82-
name: unit-tests-core-results
83-
path: stream-android-core/build/reports/tests/testDebugUnitTest/index.html
84-
85-
- uses: GetStream/android-ci-actions/actions/setup-ruby@main
86-
87-
- name: Sonar
88-
run: ./gradlew sonar
89-
env:
90-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20+
android-ci:
21+
uses: GetStream/stream-build-conventions-android/.github/workflows/[email protected]
22+
secrets: inherit
23+
with:
24+
api-check: false

0 commit comments

Comments
 (0)