tests/testthat/test-get_yaml.R

test_that("get_yaml works", {
  if (!is_gha()) testthat::skip_if_offline(host = "github.com")
  
  testthat::expect_type(
    rworkflows:::get_yaml(template = "rworkflows"),
    "list"
  )
  testthat::expect_type(
    rworkflows:::get_yaml(template = "rworkflows_static"),
    "list"
  )
  testthat::expect_error(
    rworkflows:::get_yaml(template = "TYPOOOOO")
  )
})

Try the rworkflows package in your browser

Any scripts or data that you put into this service are public.

rworkflows documentation built on May 6, 2026, 1:06 a.m.