Skip to content

feat : Activate migrated to CMP #390

feat : Activate migrated to CMP

feat : Activate migrated to CMP #390

Workflow file for this run

## Overview
#
# This reusable GitHub Actions workflow provides a comprehensive Continuous Integration (CI) pipeline
# for multi-platform mobile and desktop applications, specifically designed for projects using Gradle and Java/Kotlin.
#
### Key Features
# - Automated code quality checks
# - Dependency management and verification
# - Cross-platform desktop application builds (Windows, Linux, MacOS)
# - Android APK build generation
# - Artifact generation and storage
#
### Workflow Jobs
# 1. **Setup**: Prepares the build environment
# - Checks out repository code
# - Sets up Java 17
# - Configures Gradle
# - Manages dependency caching
#
# 2. **Code Quality Checks**:
# - Build logic verification
# - Code formatting checks (Spotless)
# - Static code analysis (Detekt)
#
# 3. **Dependency Guard**:
# - Verifies dependencies against baseline
# - Prevents unauthorized dependency changes
# - Supports automatic baseline updates
#
# 4. **Android App Build**:
# - Builds debug APK for demo flavor
# - Uploads APK artifacts
#
# 5. **Desktop App Build**:
# - Builds applications for Windows, Linux, and MacOS
# - Generates platform-specific executables and packages
#
### Prerequisites
# - Java 17
# - Gradle
# - Configured build scripts for:
# - Android module
# - Desktop module
# - Installed Gradle plugins:
# - Spotless
# - Detekt
# - Dependency Guard
#
### Configuration Parameters
# The workflow requires two input parameters:
#
# | Parameter | Description | Type | Required |
# |------------------------|------------------------------------|--------|----------|
# | `android_package_name` | Name of the Android project module | String | Yes |
# | `desktop_package_name` | Name of the Desktop project module | String | Yes |
#
# https://github.com/openMF/mifos-x-actionhub/blob/main/.github/workflows/pr-check.yaml
# ##############################################################################
# DON'T EDIT THIS FILE UNLESS NECESSARY #
# ##############################################################################
name: PR Checks
# Trigger conditions for the workflow
on:
push:
branches: [ kmp-impl ] # Runs on pushes to dev branch
pull_request:
branches: [ kmp-impl ] # Runs on pushes to dev branch
# Concurrency settings to prevent multiple simultaneous workflow runs
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true # Cancels previous runs if a new one is triggered
permissions:
contents: write
jobs:
pr_checks:
name: PR Checks
uses: openMF/mifos-x-actionhub/.github/workflows/pr-check.yaml@v1.0.0
with:
android_package_name: 'cmp-android' # <-- Change Your Android Package Name
desktop_package_name: 'cmp-desktop' # <-- Change Your Desktop Package Name
web_package_name: 'cmp-web' # <-- Change Your Web Package Name
ios_package_name: 'cmp-ios' # <-- Change Your iOS Package Name
build_ios: false # <-- Change to 'false' if you don't want to build iOS
git_url: 'git@github.com:openMF/ios-provisioning-profile.git'

Check failure on line 92 in .github/workflows/pr-check.yml

View workflow run for this annotation

GitHub Actions / PR Checks

Invalid workflow file

The workflow is not valid. .github/workflows/pr-check.yml (Line: 92, Col: 16): Invalid input, git_url is not defined in the referenced workflow. .github/workflows/pr-check.yml (Line: 93, Col: 19): Invalid input, git_branch is not defined in the referenced workflow.
git_branch: 'master'
match_type: 'adhoc'
app_identifier: 'org.mifos.kmp.template'
provisioning_profile_name: 'match AdHoc org.mifos.kmp.template'
secrets:
match_ssh_private_key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
match_password: ${{ secrets.MATCH_PASSWORD }}