Skip to content

Address more review suggestions #32

Address more review suggestions

Address more review suggestions #32

name: Plugin Verification Build
description: |
This workflow is used to verify the plugin against different versions of IntelliJ IDEA.
It reads the minimum and maximum supported versions from the `gradle.properties` file
and runs the plugin against each version in the range.
on:
push:
branches:
- master
- 2.[0-9]+.x
workflow_dispatch:
jobs:
read-versions:
runs-on: ubuntu-latest
outputs:
min-idea-version: ${{ steps.set-env.outputs.min-idea-version }}
max-idea-version: ${{ steps.set-env.outputs.max-idea-version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Read IntelliJ IDEA versions
id: set-env
run: |
sinceBuild=$(grep "^sinceBuild" gradle.properties | cut -d'=' -f2)
untilBuild=$(grep "^untilBuild" gradle.properties | cut -d'=' -f2)
echo "min-idea-version=${sinceBuild}" >> $GITHUB_ENV
echo "max-idea-version=${untilBuild}" >> $GITHUB_ENV
echo "::set-output name=min-idea-version::${sinceBuild}"
echo "::set-output name=max-idea-version::${untilBuild}"
verify-plugin:
needs: read-versions
runs-on: ubuntu-latest
strategy:
matrix:

Check failure on line 38 in .github/workflows/verification-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/verification-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
idea-version: [${{ needs.read-versions.outputs.min-idea-version }}, ${{ needs.read-versions.outputs.max-idea-version }}]
concurrency:
group: ${{ github.head_ref }}-ubuntu-verify
cancel-in-progress: true
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Verify against IDEA ${{ matrix.idea-version }}
run: ./gradlew runIde -PideaVersion=${{ matrix.idea-version }}