Skip to content

Commit a7c92e8

Browse files
committed
Sync with fledge
1 parent a9b94b9 commit a7c92e8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/R-CMD-check-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Can't be run as part of commits
33
on:
44
schedule:
5-
- cron: '5 0 * * *' # only run on main branch
5+
- cron: '5 0 * * *' # 05:00 UTC every day only run on main branch
66
push:
77
branches:
88
- "cran-*"

.github/workflows/check/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ runs:
2424
- name: Show test output
2525
if: always()
2626
run: |
27+
## -- Show test output --
28+
echo "::group::Test output"
2729
find check -name '*.Rout*' -exec head -n 1000000 '{}' \; || true
30+
echo "::endgroup::"
2831
shell: bash
2932

3033
- name: Upload check results

.github/workflows/update-snapshots/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ runs:
2020
tryCatch(
2121
{
2222
result <- as.data.frame(testthat::test_local(pattern = pattern, reporter = "silent", stop_on_failure = FALSE))
23-
failures <- result[result$failed > 0, ]
23+
failures <- result[result$failed + result$warning > 0, ]
2424
if (nrow(failures) > 0) {
25-
writeLines("Tests failed")
25+
writeLines("Snapshot tests failed/warned.")
2626
print(failures[names(failures) != "result"])
2727
print(failures$result)
2828
testthat::snapshot_accept()
2929
writeLines("::set-output name=changed::true")
30+
} else {
31+
writeLines("Snapshot tests ran successfully.")
3032
}
3133
},
3234
error = print

0 commit comments

Comments
 (0)