chore: enable publishing for Flutter module in pubspec #51
This file contains hidden or 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: Build & Verify | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Compile and Test | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Grant Execute Permission for Gradlew | |
| run: chmod +x gradlew | |
| - name: Build and Compile All Variants (Debug & Release) | |
| run: ./gradlew assembleDebug assembleRelease compileKotlinJvm compileKotlinIosX64 compileKotlinIosArm64 compileKotlinIosSimulatorArm64 --no-daemon | |
| - name: Run Detekt & Ktlint | |
| run: ./gradlew detekt ktlintCheck --no-daemon | |
| - name: Run Unit Tests | |
| run: ./gradlew test --no-daemon | |
| - name: Generate Code Coverage (Kover) | |
| run: ./gradlew koverHtmlReport --no-daemon | |
| - name: Publish to Maven Local (Test) | |
| run: ./gradlew publishToMavenLocal --no-daemon |