Skip to content

Upgrade to Kotlin 1.8 #2648

Upgrade to Kotlin 1.8

Upgrade to Kotlin 1.8 #2648

Workflow file for this run

name: PR-Test
on:
pull_request:
paths-ignore:
- 'doc/**'
- 'documentation/**'
- '*.md'
- '*.yml'
permissions:
contents: read
jobs:
test_linux:
runs-on: ubuntu-latest
if: github.repository == 'kotest/kotest'
strategy:
fail-fast: false
matrix:
target:
- jvmTest
- jsTest
- linuxX64Test
- :kotest-framework:kotest-framework-multiplatform-plugin-gradle:test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- uses: gradle/gradle-build-action@v2
- name: Run tests
run: ./gradlew ${{ matrix.target }} --scan
- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
- name: Upload the build report
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
test_mac:
runs-on: macos-11
if: github.repository == 'kotest/kotest'
strategy:
matrix:
target:
- macosX64Test
- macosArm64Test
- iosX64Test
- iosSimulatorArm64Test
- iosArm64TestKlibrary
- iosArm32TestKlibrary
- tvosX64Test
- tvosArm64TestKlibrary
- watchosArm32TestKlibrary
- watchosArm64TestKlibrary
- watchosX86Test
- watchosX64Test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v2
- name: Run tests
run: ./gradlew ${{ matrix.target }} --scan
- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
- name: Upload the build report
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
test_windows:
runs-on: windows-latest
if: github.repository == 'kotest/kotest'
strategy:
matrix:
target:
- mingwX64Test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v2
- name: Run tests
run: ./gradlew ${{ matrix.target }} --scan
- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
- name: Upload the build report
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
env:
GRADLE_OPTS: -Dorg.gradle.configureondemand=false -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxMetaspaceSize=756m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"