Skip to content

Introduce 4 crosses random generation by Marlov (39*32) #41

Introduce 4 crosses random generation by Marlov (39*32)

Introduce 4 crosses random generation by Marlov (39*32) #41

Workflow file for this run

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: 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
shell: bash
run: ./gradlew :library:jvmTest --no-daemon --stacktrace
- name: Compile Cli
shell: bash
run: ./gradlew :cli:compileKotlin --no-daemon --stacktrace
- name: Execute App Desktop tests
shell: bash
run: ./gradlew :composeApp:desktopTest --no-daemon --stacktrace
- name: Execute App WasmJs tests
shell: bash
run: ./gradlew :composeApp:wasmJsBrowserTest --no-daemon --stacktrace
- name: Execute App Android tests
shell: bash
run: ./gradlew :composeApp:testReleaseUnitTest --no-daemon --stacktrace
- name: Compile App Native
shell: bash
if: runner.os == 'macOS' # It makes sense only on macOS, disable on other platforms to save resources
run: ./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/
library/build/reports/tests/
composeApp/build/test-results/
composeApp/build/reports/tests/
retention-days: 3
if-no-files-found: ignore