Skip to content

release: v0.1.3

release: v0.1.3 #53

Workflow file for this run

name: Pull Request build and test
on:
workflow_call:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
- main
env:
PLUGIN_ARTIFACT_NAME: 'openfga_intellij_plugin'
DIST_FOLDER: 'build/distributions'
INTELLIJ_TARGET_COMPAT_VERSION: '2024.2'
jobs:
build:
name: Build OpenFGA plugin for IntelliJ Platform
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Java 17
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
java-version: 17
distribution: 'temurin'
- name: Build the plugin using Gradle
run: ./gradlew check buildPlugin
- name: Upload artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: '${{ env.PLUGIN_ARTIFACT_NAME }}'
path: '${{ env.DIST_FOLDER }}/'
test_compatibility:
name: Test plugin compatibility with IntelliJ Platform 2024.1
needs:
- build
runs-on: ubuntu-latest
strategy:
matrix:
ide-version:
- clion:${{INTELLIJ_TARGET_COMPAT_VERSION}}

Check failure on line 49 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Pull Request build and test

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 49, Col: 13): Unrecognized named-value: 'INTELLIJ_TARGET_COMPAT_VERSION'. Located at position 1 within expression: INTELLIJ_TARGET_COMPAT_VERSION .github/workflows/main.yaml (Line: 50, Col: 13): Unrecognized named-value: 'INTELLIJ_TARGET_COMPAT_VERSION'. Located at position 1 within expression: INTELLIJ_TARGET_COMPAT_VERSION
- goland:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- ideaIC:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- ideaIU:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- phpstorm:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- pycharmPC:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- pycharmPY:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- riderRD:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- webstorm:${{INTELLIJ_TARGET_COMPAT_VERSION}}
- ideaIC:LATEST-EAP-SNAPSHOT
steps:
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Download built plugin artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ env.PLUGIN_ARTIFACT_NAME }}
path: ${{ env.DIST_FOLDER }}
- name: Verify Plugin on IntelliJ Platforms
id: verify
uses: ChrisCarini/intellij-platform-plugin-verifier-action@9e042b5f5996a37ac60ea718afb53a5ca1a6bb78 # v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ide-versions: ${{ matrix.ide-version }}
plugin-location: '${{ env.DIST_FOLDER }}/*.zip'
- name: Get log file path and print contents
run: |
echo "The verifier log file [${{steps.verify.outputs.verification-output-log-filename}}] contents : " ;
cat ${{steps.verify.outputs.verification-output-log-filename}}