Repository navigation
ci: Test all R versions on branches that start with cran- - #53
Conversation
There was a problem hiding this comment.
Pull request overview
This PR modifies the R-CMD-check workflow to enable testing all R versions on branches starting with "cran-". The workflow now generates a versions matrix for internal PRs from cran-* branches and simplifies the condition for running the full R CMD check across multiple R versions.
Changes:
- Modified the versions-matrix step condition to include internal PRs from cran-* branches
- Simplified the rcc-full job condition to run whenever a versions matrix exists, removing the schedule/workflow_dispatch restrictions
💡 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 description 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 uses OR (||) not AND (&&). The actual behavior is: run for pull requests if EITHER the repos differ OR the branch starts with "cran-". Consider updating the comment to: "- 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.