Skip to content

Commit 5847940

Browse files
committed
feat: we now buildignore the test/playwright folder
1 parent d2ac6a4 commit 5847940

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pw
22
Title: Test your 'golem' Apps with 'Playwright'
3-
Version: 0.0.0.9017
3+
Version: 0.0.0.9018
44
Authors@R:
55
person("Colin", "Fay", , "contact@colinfay.me", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-7343-1846"))
@@ -17,13 +17,13 @@ Imports:
1717
processx,
1818
rlang,
1919
uuid,
20+
usethis,
2021
withr
2122
Encoding: UTF-8
2223
Roxygen: list(markdown = TRUE)
2324
RoxygenNote: 7.3.2
2425
Suggests:
2526
callr,
2627
httpuv,
27-
testthat (>= 3.0.0),
28-
usethis
28+
testthat (>= 3.0.0)
2929
Config/testthat/edition: 3

R/pw-init.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ pw_init <- function(
8080
}
8181
)
8282

83+
usethis::use_build_ignore(
84+
"tests/playwright"
85+
)
86+
8387
cli_alert_success(
8488
"Playwright project initialized successfully.\nTry running devtools::test() to see the tests in action."
8589
)

R/pw-use-github-action.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
#' pw_use_github_action()
77
#' }
88
#' @export
9-
#' @importFrom rlang check_installed
9+
#' @importFrom usethis use_github_action
1010
pw_use_github_action <- function() {
11-
check_installed(
12-
"usethis",
13-
"to add GitHub Actions to your project"
14-
)
15-
usethis::use_github_action(
11+
use_github_action(
1612
url = "https://github.com/ThinkR-open/pw/blob/main/inst/playwright.yml"
1713
)
1814
}

R/pw_install.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ pw_install <- function(
4343
)
4444
}
4545
)
46+
usethis::use_build_ignore(
47+
"tests/playwright"
48+
)
4649
}

0 commit comments

Comments
 (0)