Skip to content

Update dependency io.kotest:kotest-assertions-core to v5.8.0 - autoclosed #148

Update dependency io.kotest:kotest-assertions-core to v5.8.0 - autoclosed

Update dependency io.kotest:kotest-assertions-core to v5.8.0 - autoclosed #148

name: CI
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
env:
GRADLE_OPTS: -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
jobs:
Test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
runs-on: ${{matrix.os}}
if: github.repository == 'MayakaApps/Kache'
permissions:
contents: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup gradle
uses: gradle/gradle-build-action@v2
- name: Extract Kotlin version - Linux and macOS
if: matrix.os != 'windows-latest'
run: |
echo "KOTLIN_VERSION=$(sed -rn 's/^kotlin[[:space:]]?=[[:space:]]?\"(.*)\"/\1/p' 'gradle/libs.versions.toml')" >> $GITHUB_ENV
- name: Extract Kotlin version - Windows
if: matrix.os == 'windows-latest'
run: |
powershell -command "echo "KOTLIN_VERSION=$((Select-String -Path 'gradle/libs.versions.toml' -Pattern '^kotlin\s?=\s?\"(.*)\"').Matches.Groups[1].Value)" >> $env:GITHUB_ENV"
- name: Restore Konan cache
uses: actions/cache/restore@v3
id: restore-cache
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ env.KOTLIN_VERSION }}
- name: Run JVM, JS, WASM, and linuxX64 tests
if: matrix.os == 'ubuntu-latest'
run: ./gradlew jvmTest jsTest linuxX64Test --stacktrace
- name: Run mingwX64 tests
if: matrix.os == 'windows-latest'
run: ./gradlew mingwX64Test --stacktrace
- name: Run macosX64, macosArm64, iosX64, and iosSimulatorArm64 tests
if: matrix.os == 'macOS-latest'
run: |
./gradlew macosX64Test macosArm64Test iosX64Test iosSimulatorArm64Test --stacktrace
- 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
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: ${{ runner.os }} Test Report