From c25591f4bc4fd6c46b6ed34ad8f670b38bb2f456 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Mon, 11 Mar 2024 12:01:08 +0100 Subject: [PATCH 1/8] [skip ci] Workflow propagation --- .github/workflows/check.yaml | 2 ++ .github/workflows/cla.yaml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/cla.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 133ad59b..b1cc51db 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -76,6 +76,8 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main with: auto-update: true + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} grammar: if: github.event_name != 'push' name: Grammar Check 🔤 diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml new file mode 100644 index 00000000..b674b0b4 --- /dev/null +++ b/.github/workflows/cla.yaml @@ -0,0 +1,18 @@ +name: CLA 🔏 + +on: + issue_comment: + types: + - created + # For PRs that originate from forks + pull_request_target: + types: + - opened + - closed + - synchronize + +jobs: + CLA: + name: CLA 📝 + uses: insightsengineering/.github/.github/workflows/cla.yaml@main + secrets: inherit From 0e3863b392c8fddf1f894969d2b0ea53e8281e48 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 11:41:52 +0200 Subject: [PATCH 2/8] Add revdepcheck configuration --- .Rbuildignore | 2 ++ .github/workflows/on-demand.yaml | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/on-demand.yaml diff --git a/.Rbuildignore b/.Rbuildignore index 590b3775..dbb1c36e 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -45,3 +45,5 @@ coverage.* ^\.pre-commit-config\.yaml$ data-raw/data.R ^pkgdown$ +^revdeprefs\.yaml$ +^revdep$ diff --git a/.github/workflows/on-demand.yaml b/.github/workflows/on-demand.yaml new file mode 100644 index 00000000..02843bb3 --- /dev/null +++ b/.github/workflows/on-demand.yaml @@ -0,0 +1,12 @@ +--- +name: On-demand 🧑‍đŸ”Ŧ + +on: + schedule: + - cron: '45 3 * * 0' + workflow_dispatch: + +jobs: + revdepcheck: + name: revdepcheck ↩ī¸ + uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main From e4fb49ce7ccb693355cbf211bd43c9d11f886a0c Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 14:16:53 +0200 Subject: [PATCH 3/8] Add .covrignore to .Rbuildignore --- .Rbuildignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.Rbuildignore b/.Rbuildignore index dbb1c36e..9a2e3c11 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -47,3 +47,4 @@ data-raw/data.R ^pkgdown$ ^revdeprefs\.yaml$ ^revdep$ +^\.covrignore$ From c1b5bb6b3912f622a9dbcdf02798d53ec48fbb9a Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 14:32:21 +0200 Subject: [PATCH 4/8] Add .covrignore to .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d93d8523..79e8a1fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,7 @@ repos: .*\.svg| .*\.xml| (.*/|)\_pkgdown.y[a]?ml| + (.*/|)\.covrignore| (.*/|)\.gitignore| (.*/|)\.gitlab-ci\.y[a]?ml| (.*/|)\.lintr| From 8e2678a34ebb08dfceaf7604a43744c7d8cd4f59 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 15:00:54 +0200 Subject: [PATCH 5/8] Add new testthat snapshots to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index d2ebdd18..7aeca4fa 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,5 @@ docs/ # shinytest2: Ignore new debug snapshots for `$expect_values()` *_.new.png +tests/testthat/_snaps/**/*.new.md +tests/testthat/_snaps/**/*.new.svg From 5f9da7f611bf266354147e310d486b9b2f500746 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 15:26:18 +0200 Subject: [PATCH 6/8] [skip ci] Add revdep directory --- revdep/.gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 revdep/.gitignore diff --git a/revdep/.gitignore b/revdep/.gitignore new file mode 100644 index 00000000..111ab324 --- /dev/null +++ b/revdep/.gitignore @@ -0,0 +1,7 @@ +checks +library +checks.noindex +library.noindex +cloud.noindex +data.sqlite +*.html From 4a3d80cf4e803388264812b3ec8af625698805ca Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 26 Apr 2024 15:33:54 +0200 Subject: [PATCH 7/8] [skip ci] Fix typo --- .Rbuildignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.Rbuildignore b/.Rbuildignore index 9a2e3c11..70d059b1 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -45,6 +45,6 @@ coverage.* ^\.pre-commit-config\.yaml$ data-raw/data.R ^pkgdown$ -^revdeprefs\.yaml$ +^.revdeprefs\.yaml$ ^revdep$ ^\.covrignore$ From c491a18eef2a8b59a56a59a7285b07d8d79c4245 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:40:25 -0500 Subject: [PATCH 8/8] Add snapshot testing job Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com> --- .github/workflows/check.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index b1cc51db..28abc006 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -28,8 +28,21 @@ jobs: additional-env-vars: | _R_CHECK_CRAN_INCOMING_REMOTE_=false _R_CHECK_EXAMPLE_TIMING_THRESHOLD_=10 - NOT_CRAN=true additional-r-cmd-check-params: --as-cran + r-cmd-non-cran: + name: R CMD Check (non-CRAN) đŸ§Ŧ + uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} + with: + additional-env-vars: | + NOT_CRAN=true + enforce-note-blocklist: true + publish-unit-test-report-gh-pages: false + junit-xml-comparison: false + concurrency-group: non-cran + disable-unit-test-reports: true + skip-r-cmd-install: true coverage: name: Coverage 📔 uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main