From 88445450e7d3949f692e034ff5b4d87ec1e5b32d Mon Sep 17 00:00:00 2001 From: Pushpavel Date: Thu, 12 Sep 2024 20:05:23 +0530 Subject: [PATCH 1/2] Update build.yml (verify job) --- .github/workflows/build.yml | 42 +++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74f6d2f6..02e662ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,47 +94,53 @@ jobs: path: ${{ github.workspace }}/build/reports/tests # Verify plugin using IntelliJ Plugin Verifier tool only on pull_requests as it takes a long time + # Run plugin structure verification along with IntelliJ Plugin Verifier verify: - name: Verify + name: Verify plugin if: needs.properties.outputs.shouldVerify == 'true' needs: [ properties, gradleValidation ] runs-on: ubuntu-latest steps: - # Check out current repository + + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + + # Check out the current repository - name: Fetch Sources - uses: actions/checkout@v2.3.5 + uses: actions/checkout@v4 - # Setup Java 17 environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: - distribution: corretto + distribution: zulu java-version: 17 - cache: gradle - # Set environment variables - - name: Export Properties - id: properties - shell: bash - run: | - echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" - ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true # Cache Plugin Verifier IDEs - name: Setup Plugin Verifier IDEs Cache - uses: actions/cache@v2.1.6 + uses: actions/cache@v4 with: - path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides + path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} # Run Verify Plugin task and IntelliJ Plugin Verifier tool - name: Run Plugin Verification tasks - run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} + run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} # Collect Plugin Verifier Result - name: Collect Plugin Verifier Result if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pluginVerifier-result path: ${{ github.workspace }}/build/reports/pluginVerifier @@ -242,4 +248,4 @@ jobs: --notes "$(cat << 'EOM' ${{ needs.build.outputs.changelog }} EOM - )" \ No newline at end of file + )" From 9654e3a049f28cae71f8f6f57f7c80e132042ffe Mon Sep 17 00:00:00 2001 From: Pushpavel Date: Thu, 12 Sep 2024 20:11:31 +0530 Subject: [PATCH 2/2] Update build.yml (bump `actions/upload-artifact` from v2 to v4) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02e662ea..08925dd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,7 +88,7 @@ jobs: # Collect Tests Result of failed tests - name: Collect Tests Result if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: tests-result path: ${{ github.workspace }}/build/reports/tests @@ -212,7 +212,7 @@ jobs: # Store already-built plugin as an artifact for downloading - name: Upload artifact if: needs.properties.outputs.shouldRelease == 'true' - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v4 with: name: ${{ steps.artifact.outputs.filename }} path: ./build/distributions/content/*/*