Skip to content

Kotlin 2.x support #648

Kotlin 2.x support

Kotlin 2.x support #648

Workflow file for this run

name: Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 67, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ideaVersion: [ "2025.1.3", "2024.1.7" ]
steps:
- uses: actions/checkout@v2
- name: Setup JBR 21
uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 21
- name: Clear Gradle home cache
if: matrix.platform == 'windows-latest' && github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
gh cache list --json "key" --limit 1000 \
-q '.[].key | select(startswith("gradle-home") and contains("Windows"))' | \
xargs -I '{}' gh cache delete '{}'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 28.0.1
elixir-version: 1.18.4
cache: 'gradle'
- name: Export OTP_RELEASE
run: echo "OTP_RELEASE=28.0.1" >> $GITHUB_ENV
- name: Export ERLANG_SDK_HOME
run: echo "ERLANG_SDK_HOME=`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`" >> $GITHUB_ENV
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Export ideaVersion to gradle
run: echo "ORG_GRADLE_PROJECT_ideaVersion=${{matrix.ideaVersion}}" >> $GITHUB_ENV
- name: Compile Tests with Gradle
run: ./gradlew --stacktrace compileTestJava getElixir releaseQuoter test
- name: Get Elixir Source
run: ./gradlew --stacktrace getElixir
- name: Release Quoter
run: ./gradlew --stacktrace releaseQuoter
- name: Test with Gradle
run: ./gradlew --stacktrace test
verifyPlugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JBR 21
- uses: actions/setup-java@v4
with:
distribution: 'jetbrains'
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Plugin Verifier
run: ./gradlew --stacktrace verifyPlugin