Skip to content

chore: Build artifacts and release process #7

chore: Build artifacts and release process

chore: Build artifacts and release process #7

name: 'Code Quality Check'
on:
pull_request:
branches:
- main
- develop
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: Upload static analysis reports
if: success() || failure()
uses: actions/upload-artifact@v2
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 test
- name: Upload test reports
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-reports.zip
path: |
**/build/reports/tests/**