From 503373a649ae1818101438cde7b57976c42e3695 Mon Sep 17 00:00:00 2001 From: walkowif <59475134+walkowif@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:24:47 +0200 Subject: [PATCH] Workflow propagation (#109) 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 --- .Rbuildignore | 3 +++ .github/workflows/check.yaml | 2 ++ .github/workflows/cla.yaml | 18 ++++++++++++++++++ .github/workflows/on-demand.yaml | 12 ++++++++++++ .github/workflows/release.yaml | 13 ++----------- .gitignore | 2 ++ .pre-commit-config.yaml | 1 + revdep/.gitignore | 7 +++++++ 8 files changed, 47 insertions(+), 11 deletions(-) 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 0e47252e..f60fad64 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -13,3 +13,6 @@ coverage.* _pkgdown.yaml ^design$ ^pkgdown$ +^.revdeprefs\.yaml$ +^revdep$ +^\.covrignore$ diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 7d764fff..71aca752 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -70,3 +70,5 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main with: auto-update: true + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} 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/.github/workflows/release.yaml b/.github/workflows/release.yaml index 50c67f2b..509adff1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,8 +13,8 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main permissions: contents: write - r-cmd: - name: R CMD Check đŸ§Ŧ + build: + name: Build package and reports 🎁 needs: [release, docs] uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main secrets: @@ -27,15 +27,6 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main secrets: REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build: - name: Build package 🎁 - needs: release - uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main - secrets: - REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - skip-r-cmd-check: true - skip-r-cmd-install: true docs: name: Pkgdown Docs 📚 needs: release diff --git a/.gitignore b/.gitignore index ef34c12c..fb00dbe3 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,5 @@ vignettes/*.html vignettes/*.md vignettes/*.R coverage.* +tests/testthat/_snaps/**/*.new.md +tests/testthat/_snaps/**/*.new.svg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 713e68c0..4f9a131b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,6 +30,7 @@ repos: (.*/|)\.Rbuildignore| (.*/|)\.lintr| (.*/|)_pkgdown.y[a]?ml| + (.*/|)\.covrignore| (.*/|)staged_dependencies.y[a]?ml| (.*/|)\.pre-commit-.*| \.github/.*| 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