Skip to content

Commit e195e1f

Browse files
committed
Test less about the the GHA config files
These tests started failing after some changes in r-lib/actions and it feels like we are testing too much about the content of the YAML here.
1 parent 1047825 commit e195e1f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/testthat/test-github-actions.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ test_that("use_github_action() accepts a name", {
102102
expect_proj_dir(".github/workflows")
103103
expect_proj_file(".github/workflows/R-CMD-check.yaml")
104104

105-
yml <- yaml::yaml.load_file(proj_path(".github/workflows/R-CMD-check.yaml"))
106-
expect_identical(yml$name, "R-CMD-check")
107-
expect_named(yml$jobs, "R-CMD-check")
108-
109105
readme_lines <- read_utf8(proj_path("README.md"))
110106
expect_match(readme_lines, "R-CMD-check", all = FALSE)
111107

@@ -129,9 +125,6 @@ test_that("use_tidy_github_actions() configures the full check and pr commands",
129125
expect_proj_file(".github/workflows/R-CMD-check.yaml")
130126

131127
yml <- yaml::yaml.load_file(proj_path(".github/workflows/R-CMD-check.yaml"))
132-
expect_identical(yml$name, "R-CMD-check")
133-
expect_named(yml$jobs, "R-CMD-check")
134-
135128
size_build_matrix <-
136129
length(yml[["jobs"]][["R-CMD-check"]][["strategy"]][["matrix"]][["config"]])
137130
expect_gte(size_build_matrix, 6) # release, r-devel, 4 previous versions

0 commit comments

Comments
 (0)