Skip to content

Feature/generate documentation #448

Feature/generate documentation

Feature/generate documentation #448

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/**