Skip to content

deps(com.pinterest.ktlint:ktlint-test): update ktlint to v1.1.1 #108

deps(com.pinterest.ktlint:ktlint-test): update ktlint to v1.1.1

deps(com.pinterest.ktlint:ktlint-test): update ktlint to v1.1.1 #108

name: Build and verify (Beta K2 compiler)
on:
pull_request:
branches: [ v3 ]
push:
branches:
- '*'
paths-ignore:
- '**/*.md'
- '**/renovate.json'
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job
os: [ ubuntu-22.04, windows-2022, macos-12 ]
jvm: [ 11, 17, 21 ]
# https://github.com/actions
# https://github.com/marketplace?type=actions
steps:
- name: Checkout project
uses: actions/[email protected]
- name: Setup JVM ${{ matrix.jvm }}
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: ${{ matrix.jvm }}
# https://github.com/marketplace/actions/gradle-build-action
- name: Setup Gradle
uses: gradle/[email protected]
with:
# The Gradle wrapper's version (already the default, putting it here to clarity)
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/v3' }}
gradle-home-cache-cleanup: true
gradle-home-cache-includes: |
caches
notifications
jdks
gradle-version: wrapper
- name: Build
run: ./gradlew build -P kotlin.jvmToolchain=${{ matrix.jvm }} -P kotlin.experimental.tryK2=true # windows needs a space between -P and the parameter :|