Skip to content

Add 2024.2 K2 test mode #375

Add 2024.2 K2 test mode

Add 2024.2 K2 test mode #375

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test_idea:
strategy:
fail-fast: false
matrix:
version:
- { jdk: 17, idea: 2022.3 }
- { jdk: 17, idea: 2023.1 }
- { jdk: 17, idea: 2023.2 }
- { jdk: 17, idea: 2023.3 }
- { jdk: 17, idea: 2024.1 }
- { jdk: 17, idea: 2024.2 }
- { jdk: 17, idea: 2024.2, testArgs: '-Dorg.gradle.jvmargs=-Didea.kotlin.plugin.use.k2=true', name: '2024.2 K2' }
- { jdk: 17, idea: LATEST-EAP-SNAPSHOT }
name: 'IDEA ${{ matrix.version.name || matrix.version.idea }}'
env:
IDEA_VERSION: ${{ matrix.version.idea }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.version.jdk }}
- name: 'Test'
run: ./gradlew --warning-mode=all build ${{ matrix.version.testArgs }}
- name: 'Generate coverage report'
run: ./gradlew --warning-mode=all jacocoTestReport
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}