From 0bc0988a33d576d20ffa829ee442787905dd345a Mon Sep 17 00:00:00 2001 From: walkowif <59475134+walkowif@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:22:40 +0200 Subject: [PATCH] Workflow propagation (#368) Propagation of: * https://github.com/insightsengineering/idr-tasks/issues/355 * https://github.com/insightsengineering/idr-tasks/issues/756 * https://github.com/insightsengineering/idr-tasks/issues/757 * https://github.com/insightsengineering/idr-tasks/issues/712 * https://github.com/insightsengineering/idr-tasks/issues/764 --------- Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com> Co-authored-by: cicdguy <26552821+cicdguy@users.noreply.github.com> --- .Rbuildignore | 3 +++ .github/workflows/check.yaml | 17 ++++++++++++++++- .github/workflows/cla.yaml | 18 ++++++++++++++++++ .github/workflows/on-demand.yaml | 12 ++++++++++++ .gitignore | 2 ++ .pre-commit-config.yaml | 1 + revdep/.gitignore | 7 +++++++ 7 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cla.yaml create mode 100644 .github/workflows/on-demand.yaml create mode 100644 revdep/.gitignore diff --git a/.Rbuildignore b/.Rbuildignore index 590b3775..70d059b1 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -45,3 +45,6 @@ coverage.* ^\.pre-commit-config\.yaml$ data-raw/data.R ^pkgdown$ +^.revdeprefs\.yaml$ +^revdep$ +^\.covrignore$ diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 133ad59b..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 @@ -76,6 +89,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 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 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 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| 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