Skip to content

Commit 412cf6a

Browse files
authored
test: ensure NOT_CRAN="true" on GitHub Actions (#349)
1 parent bf028f0 commit 412cf6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testthat/setup.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ensure running snapshot tests on GitHub Actions CI
2+
if (identical(Sys.getenv("GITHUB_ACTIONS"), "true")) {
3+
withr::local_envvar(
4+
list(NOT_CRAN = "true"),
5+
.local_envir = teardown_env()
6+
)
7+
}

0 commit comments

Comments
 (0)