Skip to content

Commit 418bd8f

Browse files
committed
Use Android CI from common workflows
1 parent 866bfc9 commit 418bd8f

File tree

1 file changed

+3
-75
lines changed

1 file changed

+3
-75
lines changed

.github/workflows/android.yml

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -16,79 +16,7 @@ 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-
lint:
29-
name: Spotless check
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Check out code
33-
uses: actions/[email protected]
34-
- uses: GetStream/android-ci-actions/actions/setup-java@main
35-
- name: spotless
36-
run: ./gradlew spotlessCheck --scan
37-
38-
api_check:
39-
name: API check
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Check out code
43-
uses: actions/[email protected]
44-
- uses: GetStream/android-ci-actions/actions/setup-java@main
45-
- name: API check
46-
run: ./gradlew apiCheck --scan
47-
48-
build:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v3
52-
53-
- uses: GetStream/android-ci-actions/actions/setup-java@main
54-
55-
- uses: GetStream/android-ci-actions/actions/gradle-cache@main
56-
57-
- name: Make Gradle executable
58-
run: chmod +x ./gradlew
59-
60-
- name: Build with Gradle
61-
run: |
62-
./gradlew --scan --stacktrace \
63-
assembleDebug
64-
65-
unitTest:
66-
name: Unit Tests
67-
runs-on: ubuntu-22.04
68-
69-
steps:
70-
- name: Checkout
71-
uses: actions/checkout@v4
72-
with:
73-
fetch-depth: 0 # fetch all history for sonar analysis
74-
75-
- uses: GetStream/android-ci-actions/actions/setup-java@main
76-
77-
- uses: GetStream/android-ci-actions/actions/gradle-cache@main
78-
79-
- name: Run unit tests
80-
run: ./gradlew :testCoverage --scan --stacktrace
81-
82-
- name: Upload tests results
83-
uses: actions/upload-artifact@v4
84-
if: failure()
85-
with:
86-
name: testResults
87-
path: ./**/build/reports/tests/**
88-
89-
- uses: GetStream/android-ci-actions/actions/setup-ruby@main
90-
91-
- name: Sonar
92-
run: bundle exec fastlane run_sonar_analysis
93-
env:
94-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20+
base-android-ci:
21+
uses: GetStream/stream-build-conventions-android/.github/workflows/[email protected]
22+
secrets: inherit

0 commit comments

Comments
 (0)