-
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.
- Loading branch information
Showing
1,787 changed files
with
111,621 additions
and
173,986 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
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
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
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 |
---|---|---|
|
@@ -29,18 +29,12 @@ jobs: | |
- uses: ./.github/actions/prepare-environment | ||
|
||
- name: Set default scope | ||
if: ${{ inputs.scope != 'temple' }} | ||
run: echo "SCOPE={b2c,web,core,hope,new-hope,icons,typo,tokens,tokens-b2c,tokens-b2b,tokens-web,tokens-utils,tokens-native,cy-utils,ui}" >> $GITHUB_ENV | ||
|
||
- name: Set scope from "Plasma-temple" | ||
if: ${{ inputs.scope == 'temple' }} | ||
run: echo "SCOPE={b2c,web,core,hope,new-hope,icons,typo,tokens,tokens-b2c,tokens-b2b,tokens-web,tokens-utils,tokens-native,cy-utils,ui,temple}" >> $GITHUB_ENV | ||
run: echo "SCOPE={b2c,web,core,hope,new-hope,icons,typo,tokens,tokens-b2c,tokens-utils,tokens-native,cy-utils,ui}" >> $GITHUB_ENV | ||
|
||
- name: Install React 17 | ||
if: ${{ inputs.with-react-17 }} | ||
run: | | ||
npm i --no-progress react@17 react-dom@17 @types/[email protected] @types/react-dom@17 --prefix="./packages/plasma-ui" | ||
npm i --no-progress react@17 react-dom@17 @types/[email protected] @types/react-dom@17 --prefix="./packages/plasma-temple" | ||
npm i --no-progress react@17 react-dom@17 @types/[email protected] @types/react-dom@17 --prefix="./packages/plasma-b2c" | ||
npm i --no-progress react@17 react-dom@17 @types/[email protected] @types/react-dom@17 --prefix="./packages/plasma-web" | ||
|
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.