Skip to content

Commit

Permalink
Verify plugin for every branch
Browse files Browse the repository at this point in the history
  • Loading branch information
serieznyi committed May 10, 2024
1 parent a654e7d commit f5bb88a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- { name: Fetch sources, uses: actions/checkout@v4, with: { fetch-depth: 0 } }
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- { name: Gradle Wrapper Validation, uses: gradle/wrapper-validation-action@v3 }
- { name: Set up JDK, uses: actions/setup-java@v4, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } }
- { name: Setup Gradle, uses: gradle/actions/setup-gradle@v3, with: { gradle-home-cache-cleanup: true } }
Expand Down Expand Up @@ -83,7 +87,6 @@ jobs:
- { name: Set up JDK, uses: actions/setup-java@v4, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } }
- { name: Setup Gradle, uses: gradle/actions/setup-gradle@v3, with: { gradle-home-cache-cleanup: true } }
- name: Run Plugin Verify
if: github.ref != 'refs/heads/master'
run: ./gradlew runPluginVerifier
- { name: Upload `intellij-verification-report` artifact, uses: actions/upload-artifact@v4, with: { name: intellij-verification-report, path: build/reports/pluginVerifier, retention-days: "${{ env.ARTIFACT_TTL }}" } }

Expand Down Expand Up @@ -124,7 +127,7 @@ jobs:
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.ref }} \
-f "state=success" \
-f "target_url=${{ steps.deployment.outputs.page_url }}/${{ github.head_ref }}/reports" \
-f "description=Reports on Github Pages" \
Expand Down

0 comments on commit f5bb88a

Please sign in to comment.