fix(deps): update kotest to v6 (major) #212
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PR Open -> Test sample diff | |
| name: Test Sample diff | |
| on: | |
| pull_request: | |
| types: [ opened, reopened, synchronize, ready_for_review ] | |
| jobs: | |
| test-diff: | |
| runs-on: ubuntu-latest | |
| if: ${{ !github.event.pull_request.draft }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Remove Unused Resources | |
| run: | | |
| ./gradlew :sample:lintDebug -Prur.lint.onlyUnusedResources -Prur.lint.overrideLintConfig="./lint.empty.xml" | |
| ./gradlew :sample:removeUnusedResourcesDebug | |
| - name: Compare diff | |
| id: compare | |
| shell: bash +e {0} | |
| run: | | |
| git diff --unified=0 | sed "/^index .*$/d" > sample.diff.new | |
| diff -u sample.diff sample.diff.new > sample.diff.changes || ( | |
| { | |
| echo "diff<<EOF" | |
| cat sample.diff.changes | tail -n +3 | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| exit 1 | |
| ) | |
| - uses: peter-evans/find-comment@v3 | |
| id: find_comment | |
| if: failure() | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body-includes: "Diff changed:" | |
| - uses: peter-evans/create-or-update-comment@v4 | |
| if: failure() | |
| with: | |
| body: | | |
| Diff changed: | |
| ```diff | |
| ${{ steps.compare.outputs.diff }} | |
| ``` | |
| edit-mode: replace | |
| comment-id: ${{ steps.find_comment.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} |