From 528a9b302f8f2ba0bd95c96543d00ce9b0fd37ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Thu, 17 Oct 2024 11:13:31 +0200 Subject: [PATCH] feat: Add spelling tests to sync --- .github/sync.yaml | 3 +++ .github/sync_reverse.yaml | 4 ++++ testthat/spelling.R | 7 +++++++ 3 files changed, 14 insertions(+) create mode 100644 testthat/spelling.R diff --git a/.github/sync.yaml b/.github/sync.yaml index 119532dc..565e3b79 100644 --- a/.github/sync.yaml +++ b/.github/sync.yaml @@ -15,6 +15,9 @@ group: - source: testthat/test-0_rd_files.R dest: tests/testthat/test-0_rd_files.R + - source: testthat/spelling.R + dest: tests/spelling.R + # Lintr related files - source: linting/.lintr dest: .lintr diff --git a/.github/sync_reverse.yaml b/.github/sync_reverse.yaml index b36f16b0..4dedf14f 100644 --- a/.github/sync_reverse.yaml +++ b/.github/sync_reverse.yaml @@ -2,6 +2,10 @@ ssi-dk/AEF-DDF: - source: tests/testthat/test-0_rd_files.R dest: testthat/test-0_rd_files.R + - source: tests/spelling.R + dest: testthat/spelling.R + + # Lintr related files - source: .lintr dest: linting/.lintr diff --git a/testthat/spelling.R b/testthat/spelling.R new file mode 100644 index 00000000..9134f105 --- /dev/null +++ b/testthat/spelling.R @@ -0,0 +1,7 @@ +if (rlang::is_installed("spelling") && !Sys.getenv("CI", unset = FALSE)) { + spelling::spell_check_test( + vignettes = TRUE, + error = FALSE, + skip_on_cran = TRUE + ) +}