Skip to content

Commit

Permalink
include all reports in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin committed Nov 25, 2024
1 parent 8cc91c4 commit 8485a7d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,24 @@ jobs:
cache: gradle
- name: Verify plugin
run: ./gradlew --no-configuration-cache verifyPlugin
- name: Find version
id: version
- name: Get result directories
run: |
echo "IDE_VERSION=`ls build/reports/pluginVerifier/`" >> $GITHUB_OUTPUT
DIRECTORIES=$(ls build/reports/pluginVerifier/ | jq -R -s -c 'split("\n")[:-1]')
echo "DIRECTORIES=$DIRECTORIES" >> $GITHUB_ENV
outputs:
directories: ${{ env.DIRECTORIES }}

addComments:
runs-on: ubuntu-latest
needs: runPluginVerifier
strategy:
matrix:
dir: ${{fromJson(needs.runPluginVerifier.outputs.directories)}}
steps:
- name: Publish report
uses: mshick/add-pr-comment@v2
with:
message-id: verify-plugin-comment
refresh-message-position: true
message-path: |
build/reports/pluginVerifier/${{ steps.version.outputs.IDE_VERSION }}/report.md
build/reports/pluginVerifier/${{ matrix.dir }}/report.md

0 comments on commit 8485a7d

Please sign in to comment.