Bump org.jetbrains.intellij.platform from 2.10.1 to 2.10.4 in /PluginsAndFeatures/azure-toolkit-for-rider #794
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: | |
| # - validate Gradle Wrapper, | |
| # - run 'verifyPlugin' tasks, | |
| # - run 'buildPlugin' task and prepare artifact for the further tests, | |
| # - run 'runPluginVerifier' task, | |
| # - create a draft release. | |
| # | |
| # Workflow is triggered on push and pull_request events. | |
| # | |
| # GitHub Actions reference: https://help.github.com/en/actions | |
| # | |
| ## JBIJPPTPL | |
| name: Build | |
| on: | |
| workflow_dispatch: | |
| # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests) | |
| push: | |
| branches: [ develop ] | |
| # Trigger the workflow on any pull request | |
| pull_request: | |
| branches: [ develop ] | |
| types: [ 'opened', 'reopened', 'synchronize', 'ready_for_review' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # Branches from the https://github.com/microsoft/azure-maven-plugins and https://github.com/microsoft/azure-tools-for-java repositories | |
| ENDGAME_VERSION: endgame-202503 | |
| jobs: | |
| # Prepare the environment and build the plugin | |
| build-dependencies: | |
| if: github.event.pull_request.draft == false | |
| name: Build Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v5 | |
| with: | |
| path: azure-tools-for-intellij | |
| # Set up the Java environment | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 21 | |
| - name: Cache Azure libraries | |
| id: cache-azure-libraries | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-azure-libraries | |
| with: | |
| path: /home/runner/.m2/repository/com/microsoft | |
| key: ${{ env.ENDGAME_VERSION }} | |
| # Build Utils library | |
| - name: Build Utils | |
| if: steps.cache-azure-libraries.outputs.cache-hit != 'true' | |
| working-directory: ${{ github.workspace }}/azure-tools-for-intellij | |
| shell: bash | |
| run: ./mvnw install -DskipTests -f Utils/pom.xml | |
| # Upload azure artifacts | |
| - name: Upload azure artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: azure-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azure/ | |
| retention-days: 1 | |
| # Upload hdinsight artifacts | |
| - name: Upload hdinsight artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: hdinsight-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/hdinsight/ | |
| retention-days: 1 | |
| # Upload azuretools artifacts | |
| - name: Upload azuretools artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: azuretools-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azuretools/ | |
| retention-days: 1 | |
| # Prepare the environment and build the plugin | |
| build: | |
| name: Build | |
| needs: [ build-dependencies ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/[email protected] | |
| with: | |
| tool-cache: false | |
| # Download azure artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: azure-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azure/ | |
| # Download hdinsight artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: hdinsight-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/hdinsight/ | |
| # Download azuretools artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: azuretools-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azuretools/ | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v5 | |
| # Set up the Java environment | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 21 | |
| # Set up Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-disabled: true | |
| # Set up the .NET environment | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.x' | |
| # Build plugin | |
| - name: Build plugin | |
| working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider | |
| run: ./gradlew buildPlugin | |
| # Prepare plugin archive content for creating artifact | |
| - name: Prepare Plugin Artifact | |
| id: artifact | |
| working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider | |
| shell: bash | |
| run: | | |
| cd ./build/distributions | |
| FILENAME=`ls *.zip` | |
| unzip "$FILENAME" -d content | |
| echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT | |
| # Store an already-built plugin as an artifact for downloading | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.artifact.outputs.filename }} | |
| path: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider/build/distributions/content/*/* | |
| # # Run tests and upload a code coverage report | |
| # test: | |
| # name: Test | |
| # needs: [ build ] | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # | |
| # # Download azure artifacts | |
| # - name: Download library artifacts | |
| # uses: actions/download-artifact@v5 | |
| # with: | |
| # name: azure-artifacts | |
| # path: /home/runner/.m2/repository/com/microsoft/azure/ | |
| # | |
| # # Download hdinsight artifacts | |
| # - name: Download library artifacts | |
| # uses: actions/download-artifact@v5 | |
| # with: | |
| # name: hdinsight-artifacts | |
| # path: /home/runner/.m2/repository/com/microsoft/hdinsight/ | |
| # | |
| # # Download azuretools artifacts | |
| # - name: Download library artifacts | |
| # uses: actions/download-artifact@v5 | |
| # with: | |
| # name: azuretools-artifacts | |
| # path: /home/runner/.m2/repository/com/microsoft/azuretools/ | |
| # | |
| # # Check out the current repository | |
| # - name: Fetch Sources | |
| # uses: actions/checkout@v5 | |
| # | |
| # # Set up the Java environment | |
| # - name: Setup Java | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # distribution: zulu | |
| # java-version: 21 | |
| # | |
| # # Set up Gradle | |
| # - name: Setup Gradle | |
| # uses: gradle/actions/setup-gradle@v5 | |
| # | |
| # # Set up the .NET environment | |
| # - name: Setup .NET | |
| # uses: actions/setup-dotnet@v4 | |
| # with: | |
| # dotnet-version: '9.x' | |
| # | |
| # # Run tests | |
| # - name: Run Tests | |
| # working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider | |
| # run: ./gradlew check | |
| # | |
| # # Collect Tests Result of failed tests | |
| # - name: Collect Tests Result | |
| # if: ${{ failure() }} | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: tests-result | |
| # path: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider/build/reports/tests | |
| # Run plugin structure verification along with IntelliJ Plugin Verifier | |
| verify: | |
| name: Verify plugin | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/[email protected] | |
| with: | |
| tool-cache: false | |
| # Download azure artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: azure-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azure/ | |
| # Download hdinsight artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: hdinsight-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/hdinsight/ | |
| # Download azuretools artifacts | |
| - name: Download library artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: azuretools-artifacts | |
| path: /home/runner/.m2/repository/com/microsoft/azuretools/ | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v5 | |
| # Set up the Java environment | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 21 | |
| # Set up Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-disabled: true | |
| # Set up the .NET environment | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.x' | |
| # Run Verify Plugin task and IntelliJ Plugin Verifier tool | |
| - name: Run Plugin Verification tasks | |
| working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider | |
| run: ./gradlew verifyPlugin | |
| # Collect Plugin Verifier Result | |
| - name: Collect Plugin Verifier Result | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pluginVerifier-result | |
| path: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider/build/reports/pluginVerifier | |
| # Prepare a draft release for GitHub Releases page for the manual verification | |
| # If accepted and published, the release workflow would be triggered | |
| releaseDraft: | |
| name: Release draft | |
| if: github.event_name != 'pull_request' | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v5 | |
| # Remove old release drafts by using the curl request for the available releases with a draft flag | |
| - name: Remove Old Release Drafts | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh api repos/{owner}/{repo}/releases \ | |
| --jq '.[] | select(.draft == true) | .id' \ | |
| | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} | |
| # Create a new release draft which is not publicly visible and requires manual acceptance | |
| - name: Create Release Draft | |
| working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| VERSION=$(./gradlew properties --property version --quiet --console=plain | tail -n 1 | cut -f2- -d ' ') | |
| RELEASE_NOTE="./build/tmp/release_note.txt" | |
| ./gradlew getChangelog --unreleased --no-header --quiet --console=plain --output-file=$RELEASE_NOTE | |
| gh release create $VERSION \ | |
| --draft \ | |
| --title $VERSION \ | |
| --notes-file $RELEASE_NOTE |