chore: update version to 1.1.5 #37
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".github/pull_request_template.md" | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".github/pull_request_template.md" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| FLUTTER_VERSION: 3.41.4 | |
| JAVA_VERSION: "17" | |
| jobs: | |
| quality: | |
| name: Analyze and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: ${{ env.FLUTTER_VERSION }} | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Analyze project | |
| run: flutter analyze | |
| - name: Run tests | |
| run: flutter test --exclude-tags=golden | |
| goldens-windows: | |
| name: Run golden tests | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: ${{ env.FLUTTER_VERSION }} | |
| cache: true | |
| - name: Install dependencies | |
| shell: pwsh | |
| run: flutter pub get | |
| - name: Run golden tests | |
| shell: pwsh | |
| run: flutter test --tags=golden | |
| windows-build: | |
| name: Build Windows bundle | |
| runs-on: windows-latest | |
| needs: | |
| - quality | |
| - goldens-windows | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: ${{ env.FLUTTER_VERSION }} | |
| cache: true | |
| - name: Enable Windows desktop | |
| shell: pwsh | |
| run: flutter config --enable-windows-desktop | |
| - name: Install dependencies | |
| shell: pwsh | |
| run: flutter pub get | |
| - name: Build Windows release | |
| shell: pwsh | |
| run: flutter build windows --release | |
| - name: Archive Windows bundle | |
| id: windows_bundle | |
| shell: pwsh | |
| run: | | |
| $artifactDir = Join-Path $env:RUNNER_TEMP 'kick-windows' | |
| New-Item -ItemType Directory -Force -Path $artifactDir | Out-Null | |
| $archivePath = Join-Path $artifactDir "kick-windows-${env:GITHUB_SHA}-portable.zip" | |
| Compress-Archive -Path 'build\windows\x64\runner\Release\*' -DestinationPath $archivePath -Force | |
| "archive_path=$archivePath" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append | |
| - name: Upload Windows artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: kick-windows-portable-${{ github.sha }} | |
| path: ${{ steps.windows_bundle.outputs.archive_path }} | |
| if-no-files-found: error | |
| android-build: | |
| name: Build Android debug APK | |
| runs-on: ubuntu-latest | |
| needs: | |
| - quality | |
| - goldens-windows | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Set up Gradle cache | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install Android SDK packages | |
| run: sdkmanager "platform-tools" "platforms;android-36" "build-tools;36.1.0" | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: ${{ env.FLUTTER_VERSION }} | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Build Android debug APK | |
| run: flutter build apk --debug | |
| - name: Prepare Android artifact | |
| id: android_artifact | |
| shell: bash | |
| run: | | |
| artifact_dir="$RUNNER_TEMP/kick-android" | |
| mkdir -p "$artifact_dir" | |
| artifact_path="$artifact_dir/kick-android-${GITHUB_SHA}-debug.apk" | |
| cp build/app/outputs/flutter-apk/app-debug.apk "$artifact_path" | |
| echo "artifact_path=$artifact_path" >> "$GITHUB_OUTPUT" | |
| - name: Upload Android artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: kick-android-debug-${{ github.sha }} | |
| path: ${{ steps.android_artifact.outputs.artifact_path }} | |
| if-no-files-found: error |