Skip to content

Support 2024.2 & IntelliJ Platform Gradle Plugin (2.x) #603

Support 2024.2 & IntelliJ Platform Gradle Plugin (2.x)

Support 2024.2 & IntelliJ Platform Gradle Plugin (2.x) #603

Workflow file for this run

name: Test
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ideaVersion: [ "2024.2.0.1" ]
steps:
- uses: actions/checkout@v2
- name: Setup JBR 17
uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 17
cache: 'gradle'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 24.3.4.6
elixir-version: 1.13.4
- name: Export OTP_RELEASE
run: echo "OTP_RELEASE=24.3.4.6" >> $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
- name: Get Elixir Source
run: ./gradlew --stacktrace getElixir
- name: Release Quoter
run: ./gradlew --stacktrace releaseQuoter
- name: Test with Gradle
run: ./gradlew --stacktrace test
runPluginVerifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JBR 17
uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 17
cache: 'gradle'
- name: Cache Gradle packages
uses: actions/cache@v2
if: always()
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Plugin Verifier
run: ./gradlew --stacktrace verifyPlugin