@@ -694,9 +694,12 @@ jobs:
694694 if : inputs.skip-r-cmd-check != true
695695 run : |
696696 find ${{ env.PKGNAME }}.Rcheck -type f -regextype posix-egrep \
697- -regex '.*00install.out|.*00check.log|.*00build.out' -print0 | while IFS= read -r -d $'\0' file; do
698- printf "==================================\n$file\n==================================\n"
699- cat $file
697+ -regex '.*00install.out|.*00check.log|.*00build.out|.*-Ex.Rout|.*tests/testthat\.Rout.*' \
698+ -print0 | while IFS= read -r -d $'\0' file; do
699+ # Grouping allows to collapse/expand logs when needed.
700+ echo "::group::$file"
701+ cat $file
702+ echo "::endgroup::"
700703 done
701704 shell : bash
702705
@@ -782,6 +785,18 @@ jobs:
782785 path : ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}/${{ env.PKGBUILD }}
783786 name : ${{ env.PKGBUILD }}
784787
788+ - name : Upload logs artifact 🗞️
789+ uses : actions/upload-artifact@v4
790+ with :
791+ path : |
792+ ${{ env.PKGNAME }}.Rcheck/*00install.out
793+ ${{ env.PKGNAME }}.Rcheck/*00check.log
794+ ${{ env.PKGNAME }}.Rcheck/*00build.out
795+ ${{ env.PKGNAME }}.Rcheck/*-Ex.Rout
796+ ${{ env.PKGNAME }}.Rcheck/tests/testthat.Rout
797+ ${{ env.PKGNAME }}.Rcheck/tests/testthat.Rout.fail
798+ name : check-logs-${{ env.PKGNAME }}-${{ inputs.concurrency-group }}
799+
785800 publish-junit-html-report :
786801 name : Publish JUnit HTML report 📰
787802 runs-on : ubuntu-latest
@@ -813,7 +828,7 @@ jobs:
813828
814829 - name : Upload JUnit HTML report to GitHub pages 🗞️
815830 if : needs.build-install-check.outputs.multiversion-docs == 'true'
816- uses : peaceiris/actions-gh-pages@v3
831+ uses : peaceiris/actions-gh-pages@v4
817832 with :
818833 github_token : ${{ steps.github-token.outputs.token }}
819834 publish_dir : ./unit-test-report
@@ -823,7 +838,7 @@ jobs:
823838 if : >
824839 needs.build-install-check.outputs.is-latest-tag == 'true'
825840 && needs.build-install-check.outputs.multiversion-docs == 'true'
826- uses : peaceiris/actions-gh-pages@v3
841+ uses : peaceiris/actions-gh-pages@v4
827842 with :
828843 github_token : ${{ steps.github-token.outputs.token }}
829844 publish_dir : ./unit-test-report
@@ -833,15 +848,15 @@ jobs:
833848 if : >
834849 needs.build-install-check.outputs.is-rc-tag == 'true'
835850 && needs.build-install-check.outputs.multiversion-docs == 'true'
836- uses : peaceiris/actions-gh-pages@v3
851+ uses : peaceiris/actions-gh-pages@v4
837852 with :
838853 github_token : ${{ steps.github-token.outputs.token }}
839854 publish_dir : ./unit-test-report
840855 destination_dir : ${{ inputs.release-candidate-alt-name }}/unit-test-report
841856
842857 - name : Upload JUnit HTML report to GitHub pages (non-multiversion) 🗞️
843858 if : needs.build-install-check.outputs.multiversion-docs == 'false'
844- uses : peaceiris/actions-gh-pages@v3
859+ uses : peaceiris/actions-gh-pages@v4
845860 with :
846861 github_token : ${{ steps.github-token.outputs.token }}
847862 publish_dir : ./unit-test-report
0 commit comments