Fix Android SVG support by moving resources to platform-specific directories #48
Workflow file for this run
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 & Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test - ${{ matrix.platform }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| platform: Windows | |
| - os: macos-latest | |
| platform: macOS | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate Gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: Setup JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Grant execute permission | |
| if: runner.os != 'Windows' | |
| run: chmod +x ./gradlew | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| add-job-summary: on-failure | |
| - name: Execute Library tests | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :library:jvmTest --no-daemon --stacktrace | |
| - name: Compile Cli | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :cli:compileKotlin --no-daemon --stacktrace | |
| - name: Execute App Desktop tests | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :composeApp:desktopTest --no-daemon --stacktrace | |
| - name: Compile App WasmJS | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :composeApp:compileKotlinWasmJs --no-daemon --stacktrace | |
| - name: Compile App Android | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :composeApp:compileDebugKotlinAndroid --no-daemon --stacktrace | |
| - name: Compile App Native | |
| if: runner.os == 'macOS' # It makes sense only on macOS, disable on other platforms to save resources | |
| run: ${{ runner.os == 'Windows' && '.\gradlew.bat' || './gradlew' }} :composeApp:compileIosMainKotlinMetadata --no-daemon --stacktrace | |
| - name: Publish test report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-report-${{ matrix.platform }} | |
| path: | | |
| library/build/test-results/jvmTest/ | |
| library/build/reports/tests/jvmTest/ | |
| composeApp/build/test-results/desktopTest/ | |
| composeApp/build/reports/tests/desktopTest/ | |
| retention-days: 3 | |
| if-no-files-found: ignore |