-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore[sdds-android, cicd]: Project build system migration to composit…
…e builds was made to support multiproject structure. Code quality check workflow was created. Merge report tasks were added. Codeowners file was modified.
- Loading branch information
Showing
68 changed files
with
2,285 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'Prepare Android environment' | ||
|
||
description: 'Setup gradle with cache' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache Gradle | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
./.gradle | ||
~/.gradle/cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
|
||
- name: Make Gradle executable | ||
shell: bash | ||
run: chmod +x ./native/sdds-android/gradlew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: 'Code Quality Check' | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'native/sdds-android/**' | ||
push: | ||
paths: | ||
- 'native/sdds-android/**' | ||
|
||
concurrency: | ||
# New commit on branch cancels running workflows of the same branch | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
defaults: | ||
run: | ||
working-directory: ./native/sdds-android | ||
|
||
jobs: | ||
lint: | ||
name: Perform static analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare environment | ||
uses: ./.github/actions/prepare-android-env | ||
|
||
- name: Run lint | ||
run: ./gradlew lintDebugAll | ||
|
||
- name: Run detekt | ||
run: ./gradlew detektAll | ||
|
||
- name: Run spotless | ||
run: ./gradlew spotlessCheckAll | ||
|
||
- name: Merge reports | ||
if: success() || failure() | ||
run: ./gradlew mergeReports | ||
|
||
- name: Upload static analysis reports | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: static_analysis | ||
path: native/sdds-android/build/reports/ | ||
|
||
unit-test: | ||
name: Perform Unit Testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare environment | ||
uses: ./.github/actions/prepare-android-env | ||
|
||
- name: Run tests | ||
run: ./gradlew test | ||
|
||
- name: Merge test reports | ||
if: success() || failure() | ||
run: ./gradlew copyTestsReports | ||
|
||
- name: Upload test reports | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-reports.zip | ||
path: native/sdds-android/build/reports/test-reports.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.