Skip to content

Commit

Permalink
remove verifier step
Browse files Browse the repository at this point in the history
  • Loading branch information
y-polek committed Jun 4, 2024
1 parent ffc58a3 commit 727b20a
Showing 1 changed file with 0 additions and 85 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
version: ${{ steps.properties.outputs.version }}
artifact: ${{ steps.properties.outputs.pluginName }}-${{ steps.properties.outputs.version }}.zip
changelog: ${{ steps.properties.outputs.changelog }}
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
steps:

# Check out current repository
Expand Down Expand Up @@ -114,15 +113,12 @@ jobs:
echo "::set-output name=version::$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')"
echo "::set-output name=name::$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')"
echo "::set-output name=pluginName::$(./gradlew properties --console=plain -q | grep "^pluginName:" | cut -f2- -d ' ')"
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=changelog::$CHANGELOG"
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
# Build artifact using buildPlugin Gradle task
- name: Build Plugin
Expand All @@ -135,87 +131,6 @@ jobs:
name: plugin-artifact
path: ./build/distributions/${{ needs.build.outputs.artifact }}

# Run plugin structure verification along with IntelliJ Plugin Verifier
verify2:
name: Verify plugin 2
needs: build
runs-on: ubuntu-latest
steps:

# 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@v4
with:
distribution: 'zulu'
java-version: '17'

# 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@v4
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
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@v4
with:
name: pluginVerifier-result
path: ${{ github.workspace }}/build/reports/pluginVerifier

# Verify built plugin using IntelliJ Plugin Verifier tool
# Requires build job to be passed
verify:
name: Verify
needs: build
runs-on: ubuntu-latest
steps:

# Download plugin artifact provided by the previous job
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: plugin-artifact
path: $GITHUB_WORKSPACE

- name: Display structure of downloaded files
run: pwd && echo ${{ github.workspace }} && echo $GITHUB_WORKSPACE && ls -R

# Run IntelliJ Plugin Verifier action using GitHub Action
- name: Verify Plugin
id: verify
uses: ChrisCarini/intellij-platform-plugin-verifier-action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
plugin-location: '${{ needs.build.outputs.artifact }}'
ide-versions: |
ideaIC:2022.3
ideaIC:LATEST-EAP-SNAPSHOT
# Print the output of the verify step
- name: Print Logs
env:
OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }}
run: |
echo "The verifier log file [$OUTPUT_LOG] contents : " ;
cat $OUTPUT_LOG
# Prepare a draft release for GitHub Releases page for the manual verification
# If accepted and published, release workflow would be triggered
releaseDraft:
Expand Down

0 comments on commit 727b20a

Please sign in to comment.