From b46307bcf467c421472f22fa85d8994300cb3570 Mon Sep 17 00:00:00 2001 From: Kangjie Zhang <47867131+kaz462@users.noreply.github.com> Date: Fri, 3 May 2024 13:35:45 -0700 Subject: [PATCH] copy common.yml from admiral (#62) * copy common.yml from admiral * update RoxygenNote --- .github/workflows/common.yml | 38 ++++++++++++++---------------------- DESCRIPTION | 2 +- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index fbf4fe1..834ed5d 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -15,14 +15,12 @@ on: - "v*" branches: - main - - devel - patch # 'pull_request' events are triggered when PRs are # created against one of these target branches. pull_request: branches: - main - - devel - patch # 'release' events are triggered when... # you guessed it - when releases are made. @@ -36,8 +34,8 @@ concurrency: cancel-in-progress: true env: - R_VERSION: "4.1" - + R_VERSION: "release" + jobs: get_r_version: name: Get R version @@ -63,13 +61,6 @@ jobs: needs: get_r_version with: r-version: "${{ needs.get_r_version.outputs.r-version }}" - readme: - name: Render README - uses: pharmaverse/admiralci/.github/workflows/readme-render.yml@main - if: github.event_name == 'push' - needs: get_r_version - with: - r-version: "${{ needs.get_r_version.outputs.r-version }}" validation: name: Validation uses: pharmaverse/admiralci/.github/workflows/r-pkg-validation.yml@main @@ -80,29 +71,24 @@ jobs: check: name: Check uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main - if: github.event_name == 'pull_request' with: - error-on: error + error-on: warning # TODO: find a way to ignore specific notes + if: github.event_name == 'pull_request' docs: name: Documentation uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v') needs: get_r_version with: - r-version: "${{ needs.get_r_version.outputs.r-version }}" - # Whether to skip multiversion docs - # Note that if you have multiple versions of docs, - # your URL links are likely to break due to path changes - skip-multiversion-docs: false - latest-tag-alt-name: cran-release - multiversion-docs-landing-page: cran-release - branches-or-tags-to-list: >- - ^cran-release$|^main$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$ + r-version: "release" + skip-multiversion-docs: true + secrets: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} linter: name: Lint uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main - if: github.event_name == 'pull_request' needs: get_r_version + if: github.event_name == 'pull_request' with: r-version: "${{ needs.get_r_version.outputs.r-version }}" links: @@ -136,3 +122,9 @@ jobs: needs: get_r_version with: r-version: "${{ needs.get_r_version.outputs.r-version }}" + vbump: + name: Version Bump 🤜🤛 + if: github.event_name == 'push' + uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.PHARMAVERSE_BOT }} diff --git a/DESCRIPTION b/DESCRIPTION index 97020e0..0c647f0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,7 +22,7 @@ Language: en-US LazyData: true LazyDataCompression: bzip2 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 Depends: R (>= 3.5) Imports: Suggests: