Skip to content

Update kotlin to v1.9.24 #198

Update kotlin to v1.9.24

Update kotlin to v1.9.24 #198

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
file-changes:
runs-on: ubuntu-latest
outputs:
any: ${{ steps.check.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Get changed files
id: check
uses: tj-actions/changed-files@v23
with:
files: |
.github/workflows/tests.yml
gradle/libs.versions.toml
gradle/kotlin-js-store/**
**/*.kt
**/*.kts
tests:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
needs: [ file-changes ]
if: needs.file-changes.outputs.any == 'true'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Cache Build files
uses: actions/cache@v3
with:
path: |
~/.konan
~/.gradle
%USERPROFILE%\.gradle
%USERPROFILE%\.konan
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }}
- uses: gradle/gradle-build-action@v2
name: Test Apple Targets
if: startsWith(matrix.os, 'macos')
with:
arguments: macosX64Test
- uses: gradle/gradle-build-action@v2
name: Test Jvm Target
if: startsWith(matrix.os, 'ubuntu')
with:
arguments: jvmTest
- uses: gradle/gradle-build-action@v2
name: Test Linux Target
if: startsWith(matrix.os, 'ubuntu')
with:
arguments: linuxX64Test
#- uses: gradle/gradle-build-action@v2
# name: Test Js Targets
# if: startsWith(matrix.os, 'ubuntu')
# with:
# arguments: jsTest
- uses: gradle/gradle-build-action@v2
name: Test Windows Target
if: startsWith(matrix.os, 'windows')
with:
arguments: mingwX64Test
- name: Publish Test Reports
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: 'build/test-results/**/TEST-*.xml'
- name: Archive test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: test-reports
path: build/reports/tests/**/**