Skip to content

Migrate to Kotlin Multiplatform and kotlinx.serialization #38

Migrate to Kotlin Multiplatform and kotlinx.serialization

Migrate to Kotlin Multiplatform and kotlinx.serialization #38

Workflow file for this run

name: Check
on:
pull_request:
push:
branches: [master]
jobs:
danger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Danger
uses: docker://ghcr.io/danger/danger-kotlin:1.2.0
with:
args: --failOnErrors --no-publish-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-java@v3.12.0
with:
distribution: 'zulu'
java-version-file: .ci-java-version
- uses: gradle/wrapper-validation-action@v1.1.0
- name: Setup Gradle
uses: gradle/gradle-build-action@v2.8.0
with:
gradle-version: wrapper
- name: Run gradle check
run: ./gradlew check
- name: Run ktlint and detekt
run: ./format --no-format && ./gradlew detektAppleMain detektJvmMain detektJsMain detektMetadataMain -x wasmBrowserTest
- uses: codecov/codecov-action@v3.1.4
with:
files: build/reports/test/jacocoTestReport.xml
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}