Skip to content

Commit d862cef

Browse files
authored
Use Android CI from common workflows (#1586)
* Use Android CI from common workflows * Fix actionlint errors
1 parent 866bfc9 commit d862cef

File tree

4 files changed

+12
-84
lines changed

4 files changed

+12
-84
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

.github/workflows/app-distribute.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
jobs:
1010
build_dogfooding_sample_app:
1111
name: Build and Distribute Dogfooding Android
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- uses: GetStream/android-ci-actions/actions/setup-java@main
1616
- name: Prepare environment
1717
run: |
@@ -33,4 +33,4 @@ jobs:
3333
appId: ${{secrets.FIREBASE_DOGFOODING_SAMPLE_APP_ID}}
3434
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
3535
groups: stream-testers
36-
file: demo-app/build/outputs/apk/development/release/demo-app-development-release.apk
36+
file: demo-app/build/outputs/apk/development/release/demo-app-development-release.apk

.github/workflows/internal-app-distribute.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ env:
1717
jobs:
1818
distribute_stream_video_calls_to_google_play:
1919
name: Distribute Stream Video Calls to Google Play
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
- uses: GetStream/android-ci-actions/actions/setup-java@main
2424
- name: Prepare environment
2525
run: |
@@ -31,4 +31,4 @@ jobs:
3131
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/service-account-credentials.json.asc > .sign/service-account-credentials.json
3232
echo "${{ secrets.ENV_PROPERTIES }}" > .env.properties
3333
- name: Publish Bundle
34-
run: bash ./gradlew publishBundle --stacktrace
34+
run: bash ./gradlew publishBundle --stacktrace

.github/workflows/release-docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
publish_dokka:
1111
name: Dokka docs
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Check out code
1515
uses: actions/[email protected]
@@ -19,8 +19,8 @@ jobs:
1919
- name: Generate Dokka HTML docs
2020
run: ./gradlew dokkaHtmlMultimodule
2121
- name: Deploy to GitHub pages
22-
uses: peaceiris/actions-gh-pages@v3
22+
uses: peaceiris/actions-gh-pages@v4
2323
with:
2424
github_token: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
2525
publish_dir: ./build/dokka/htmlMultiModule
26-
publish_branch: gh-pages
26+
publish_branch: gh-pages

0 commit comments

Comments
 (0)