Skip to content

build(deps): bump the dependencies group across 1 directory with 3 up… #51

build(deps): bump the dependencies group across 1 directory with 3 up…

build(deps): bump the dependencies group across 1 directory with 3 up… #51

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'
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@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
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:2024.1
- goland:2024.1
- ideaIC:2024.1
- ideaIC:LATEST-EAP-SNAPSHOT
- ideaIU:2024.1
- phpstorm:2024.1
- pycharmPC:2024.1
- pycharmPY:2024.1
- riderRD:2024.1
- webstorm:2024.1
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}}