Skip to content

Commit d2ac6a4

Browse files
committed
feat: use_github_action
1 parent ff67f3f commit d2ac6a4

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
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.9016
3+
Version: 0.0.0.9017
44
Authors@R:
55
person("Colin", "Fay", , "contact@colinfay.me", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-7343-1846"))
@@ -15,6 +15,7 @@ Imports:
1515
htmltools,
1616
pkgload,
1717
processx,
18+
rlang,
1819
uuid,
1920
withr
2021
Encoding: UTF-8

R/pw-use-github-action.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#' Add the Gihub Action YAML for Playwright
2+
#'
3+
#' @return Used for side effect
4+
#' @examples
5+
#' if (FALSE){
6+
#' pw_use_github_action()
7+
#' }
8+
#' @export
9+
#' @importFrom rlang check_installed
10+
pw_use_github_action <- function() {
11+
check_installed(
12+
"usethis",
13+
"to add GitHub Actions to your project"
14+
)
15+
usethis::use_github_action(
16+
url = "https://github.com/ThinkR-open/pw/blob/main/inst/playwright.yml"
17+
)
18+
}

man/pw_use_github_action.Rd

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)