Skip to content

Commit

Permalink
ci(workflows): update gradle validation and streamline steps
Browse files Browse the repository at this point in the history
Updated the `gradle/actions/wrapper-validation` to version 4.1.0 for improved validation. Removed redundant `listProductsReleases` step and adjusted task dependencies to better align with required workflow steps.
  • Loading branch information
nekofar committed Oct 7, 2024
1 parent ce39305 commit f39a217
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

# Validate wrapper
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3.5.0
uses: gradle/actions/wrapper-validation@v4.1.0

# Set up Java environment for the next steps
- name: Setup Java
Expand All @@ -86,8 +86,6 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "name=$NAME" >> $GITHUB_OUTPUT
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
# Extract changelog information
- name: Prepare Changelog
Expand Down Expand Up @@ -207,7 +205,7 @@ jobs:
# Run plugin structure verification along with IntelliJ Plugin Verifier
verify:
name: Verify plugin
needs: [ build, test, inspectCode ]
needs: [ build ]
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -242,7 +240,7 @@ jobs:

# Run Verify Plugin task and IntelliJ Plugin Verifier tool
- name: Run Plugin Verification tasks
run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}

# Collect Plugin Verifier Result
- name: Collect Plugin Verifier Result
Expand All @@ -257,7 +255,7 @@ jobs:
releaseDraft:
name: Release draft
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/support/')
needs: [ build, verify ]
needs: [ build, test, inspectCode, verify ]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit f39a217

Please sign in to comment.