ci: Test all R versions on branches that start with cran-#62
Conversation
There was a problem hiding this comment.
Pull request overview
This PR modifies the GitHub Actions workflow to enable full R version testing for branches that start with "cran-", likely to ensure comprehensive testing before CRAN submissions.
Changes:
- Modified the
versions-matrixstep condition to also run for pull requests from the same repository when the branch name starts with "cran-" - Simplified the
rcc-fulljob condition to run whenever a versions matrix is generated (removing the restriction to only schedule and manual dispatch events)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Only run for pull requests if the base repo is different from the head repo, not for workflow_dispatch if not requested, always run for other events | ||
| if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) && (github.event_name != 'workflow_dispatch' || inputs.versions-matrix) | ||
| # Only run for: | ||
| # - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-" |
There was a problem hiding this comment.
The comment is misleading. It states "pull requests if the base repo is different from the head repo and the branch name does not start with 'cran-'" but the logic actually uses OR not AND. The condition will run for pull requests when EITHER the repos are different OR the branch starts with 'cran-'. A more accurate comment would be: "pull requests if the base repo is different from the head repo OR the branch name starts with 'cran-'"
| # - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-" | |
| # - pull requests if the base repo is different from the head repo or the branch name starts with "cran-" |
No description provided.