ci: add copilot setup workflow and componentize install steps#17
Merged
Conversation
- Add .github/workflows/install/action.yml composite action for shared R/pandoc/dependency setup - Add .github/workflows/copilot-setup-steps.yml for GitHub Copilot agent - Update R-CMD-check, pkgdown, test-coverage, pr-commands to use install action - Switch /style pr-command from styler to air format - Closes #15 Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Adapt Copilot setup workflow for DataWrap
ci: add copilot setup workflow and componentize install steps
Mar 9, 2026
There was a problem hiding this comment.
Pull request overview
This PR introduces a reusable composite action to standardize R/pandoc/dependency setup across CI workflows, and adds the required copilot-setup-steps workflow for GitHub Copilot agent support.
Changes:
- Added a shared composite action (
.github/workflows/install) wrappingsetup-pandoc,setup-r, andsetup-r-dependencies. - Added a
copilot-setup-stepsworkflow that provisions a full dev environment (plusair). - Refactored existing workflows to use the shared install action; updated coverage reporting to generate Cobertura output and upload via Codecov action.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/install/action.yml | New composite action to centralize R/pandoc/dependency installation. |
| .github/workflows/copilot-setup-steps.yml | New workflow to prepare the repo environment for Copilot agent runs. |
| .github/workflows/R-CMD-check.yaml | Uses the composite install action instead of inline setup steps. |
| .github/workflows/pkgdown.yaml | Uses the composite install action for site builds. |
| .github/workflows/pr-commands.yaml | /document uses composite install; /style switches from styler to air. |
| .github/workflows/test-coverage.yaml | Uses composite install and switches to Cobertura + Codecov action upload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a shared composite action for R environment setup and adds a
copilot-setup-stepsworkflow required for GitHub Copilot agent support. All existing workflows now delegate the pandoc/R/dependency installation sequence to the shared action.New files
.github/workflows/install/action.yml— composite action wrappingsetup-pandoc,setup-r, andsetup-r-dependencieswith inputs forr-version,http-user-agent,needs,extra-packages, andcache-version.github/workflows/copilot-setup-steps.yml— Copilot agent setup workflow (job name is required to becopilot-setup-steps); installs full dev environment +airUpdated workflows
All four existing workflows replace their inline setup steps with a single
uses: ./.github/workflows/installcall:R-CMD-check.yaml— passesr-versionandhttp-user-agentfrom the matrixpkgdown.yaml—needs: website,extra-packages: any::pkgdown local::.test-coverage.yaml—needs: coverage,extra-packages: any::covrpr-commands.yaml—/documentjob uses the install action;/stylejob dropsstylerin favour ofposit-dev/setup-air+air format .Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.