ci: plasma sd service publication workflows #440
Workflow file for this run
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
name: 'Code Quality Check' | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
- feature/* | |
- release/* | |
- hotfix/* | |
concurrency: | |
# New commit on branch cancels running workflows of the same branch | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
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: Run apiCheck | |
# run: ./gradlew apiCheckAll | |
- name: Upload static analysis reports | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: static_analysis.zip | |
path: | | |
**/build/reports/** | |
!**/build/reports/tests/** | |
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 testAll | |
- name: Upload test reports | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports.zip | |
path: | | |
**/build/reports/tests/** |