Skip to content

Commit

Permalink
Add plugin verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Nov 19, 2023
1 parent ec6659f commit d5f9dd6
Showing 1 changed file with 72 additions and 50 deletions.
122 changes: 72 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,53 +192,75 @@ jobs:
name: ${{ steps.artifact.outputs.filename }}
path: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider/build/distributions/content/*/*

# # 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/free-disk-space@main
# with:
# tool-cache: false
# large-packages: false
#
# # Check out current repository
# - name: Fetch Sources
# uses: actions/checkout@v4
#
# # Set up Java environment for the next steps
# - name: Setup Java
# uses: actions/setup-java@v3
# with:
# distribution: zulu
# java-version: 17
#
# # Set up Gradle
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
# with:
# gradle-home-cache-cleanup: true
#
# # Cache Plugin Verifier IDEs
# - name: Setup Plugin Verifier IDEs Cache
# uses: actions/cache@v3
# with:
# 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
# working-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider
# run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
#
# # Collect Plugin Verifier Result
# - name: Collect Plugin Verifier Result
# if: ${{ always() }}
# uses: actions/upload-artifact@v3
# with:
# name: pluginVerifier-result
# path: ${{ github.workspace }}/build/reports/pluginVerifier
# 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/free-disk-space@main
with:
tool-cache: false
large-packages: false

# Download azure artifacts
- name: Download library artifacts
uses: actions/download-artifact@v3
with:
name: azure-artifacts
path: /home/runner/.m2/repository/com/microsoft/azure/

# Download hdinsight artifacts
- name: Download library artifacts
uses: actions/download-artifact@v3
with:
name: hdinsight-artifacts
path: /home/runner/.m2/repository/com/microsoft/hdinsight/

# Download azuretools artifacts
- name: Download library artifacts
uses: actions/download-artifact@v3
with:
name: azuretools-artifacts
path: /home/runner/.m2/repository/com/microsoft/azuretools/

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4

# Set up Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

# Set up Gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
build-root-directory: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider
gradle-home-cache-cleanup: true

# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v3
with:
path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
key: plugin-verifier-${{ hashFiles('PluginsAndFeatures/azure-toolkit-for-rider/build/listProductsReleases.txt') }}

# 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 runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}

# Collect Plugin Verifier Result
- name: Collect Plugin Verifier Result
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: pluginVerifier-result
path: ${{ github.workspace }}/PluginsAndFeatures/azure-toolkit-for-rider/build/reports/pluginVerifier

0 comments on commit d5f9dd6

Please sign in to comment.