Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure GitHub Actions CI/CD for R packages including R CMD check on multiple platforms, test coverage reporting, and pkgdown site deployment. Uses r-lib/actions for standard workflows. Use when setting up CI/CD for a new R package, adding multi-platform testing to an existing package, configuring automated pkgdown site deployment, or adding code coverage reporting to a repository.
.claude/skills/kunanonj-setup-github-actions-ci/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 118% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 73% | 0% |
Configure automated R CMD check, test coverage, and documentation deployment via GitHub Actions.
Create .github/workflows/R-CMD-check.yaml:
yamlon: push: branches: [main, master] pull_request: branches: [main, master] name: R-CMD-check locale: caveman source_locale: en source_commit: 82c77053 translator: "Julius Brussee homage — caveman" translation_date: "2026-04-19" permissions: read-all jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.os }} (${{ matrix.config.r }}) strategy: fail-fast: false matrix: config: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-latest, r: 'oldrel-1'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes steps: - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::rcmdcheck needs: check - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true build_args: 'c("--no-manual", "--compact-vignettes=gs+qpdf")'
Expected: Workflow file .github/workflows/R-CMD-check.yaml created with a multi-platform matrix (macOS, Windows, Ubuntu) covering release, devel, and oldrel.
On failure: If the .github/workflows/ directory does not exist, create it with mkdir -p .github/workflows. Verify YAML syntax with a YAML linter.
Create .github/workflows/test-coverage.yaml:
yamlon: push: branches: [main, master] pull_request: branches: [main, master] name: test-coverage locale: caveman source_locale: en source_commit: 82c77053 translator: "Julius Brussee homage — caveman" translation_date: "2026-04-19" permissions: read-all jobs: test-coverage: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::covr, any::xml2 needs: coverage - name: Test coverage run: | cov <- covr::package_coverage( quiet = FALSE, clean = FALSE, install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") ) covr::to_cobertura(cov) shell: Rscript {0} - uses: codecov/codecov-action@v4 with: fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }} file: ./cobertura.xml plugin: noop token: ${{ secrets.CODECOV_TOKEN }}
Expected: Workflow file .github/workflows/test-coverage.yaml created. Coverage reports will be uploaded to Codecov on each push and PR.
On failure: If Codecov upload fails, verify the CODECOV_TOKEN secret is set in the repository settings. For public repos, the token may be optional.
Create .github/workflows/pkgdown.yaml:
yamlon: push: branches: [main, master] release: types: [published] workflow_dispatch: name: pkgdown locale: caveman source_locale: en source_commit: 82c77053 translator: "Julius Brussee homage — caveman" translation_date: "2026-04-19" permissions: contents: write pages: write jobs: pkgdown: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::pkgdown, local::. needs: website - name: Build site run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0} - name: Deploy to GitHub pages if: github.event_name != 'pull_request' uses: JamesIves/github-pages-deploy-action@v4 with: clean: false branch: gh-pages folder: docs
Expected: Workflow file .github/workflows/pkgdown.yaml created. Site builds and deploys to gh-pages branch on push to main or release.
On failure: If deployment fails, ensure the repository has contents: write permissions enabled. Verify _pkgdown.yml has development: mode: release set.
Add to README.md:
markdown[](https://github.com/USERNAME/REPO/actions/workflows/R-CMD-check.yaml)
Expected: README displays a live CI status badge that updates automatically after each workflow run.
On failure: If the badge shows "no status," verify the workflow filename in the badge URL matches the actual file. Push a commit to trigger the first workflow run.
gh-pages branch if using pkgdownCODECOV_TOKEN secret if using coverage reportingGITHUB_TOKEN has appropriate permissionsExpected: GitHub Pages is configured for pkgdown deployment. Required secrets are set. Token permissions are sufficient for the workflows.
On failure: If Pages deployment fails, check Settings > Pages to ensure the source is set to the gh-pages branch. If secrets are missing, add them under Settings > Secrets and variables > Actions.
bashgit add .github/ git commit -m "Add GitHub Actions CI workflows" git push
Check the Actions tab on GitHub to verify workflows run successfully.
Expected: Green checkmarks on all jobs in the GitHub Actions tab. Workflows trigger on both push and PR events.
On failure: Check workflow logs in the Actions tab. Common issues: missing system dependencies (add to extra-packages), vignette build failures (ensure pandoc setup step is present), YAML syntax errors.
permissions: GitHub Actions now requires explicit permissions. Add permissions: read-all at minimumr-lib/actions/setup-r-dependencies which handles most casesr-lib/actions/setup-pandoc@v2_pkgdown.yml has development: mode: release for GitHub Pagesr-lib/actions/setup-r-dependencies handles caching automaticallycreate-r-package - initial package setup including CI workflowbuild-pkgdown-site - detailed pkgdown configurationsubmit-to-cran - CI checks should mirror CRAN expectationsrelease-package-version - trigger deployment on release| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 9,087 | 4,915 | -46% | 1 | 1 | 0% | 1,904 | 3,443 | +81% | 0 | 0 | — |
case-02 | fail→pass | 13,989 | 9,061 | -35% | 1 | 1 | 0% | 2,961 | 4,414 | +49% | 0 | 0 | — |
case-03 | fail→pass | 14,747 | 8,911 | -40% | 1 | 1 | 0% | 3,147 | 4,319 | +37% | 0 | 0 | — |
case-04 | pass→pass | 11,539 | 5,230 | -55% | 1 | 1 | 0% | 2,229 | 3,296 | +48% | 0 | 0 | — |
case-05 | pass→pass | 11,332 | 3,363 | -70% | 1 | 1 | 0% | 2,000 | 2,801 | +40% | 0 | 0 | — |
case-06 | pass→pass | 10,799 | 5,803 | -46% | 1 | 1 | 0% | 1,998 | 3,430 | +72% | 0 | 0 | — |
case-07 | pass→pass | 9,819 | 5,004 | -49% | 1 | 1 | 0% | 1,916 | 3,301 | +72% | 0 | 0 | — |
case-08 | fail→pass | 9,799 | 4,199 | -57% | 1 | 1 | 0% | 1,971 | 3,089 | +57% | 0 | 0 | — |
case-09 | fail→pass | 7,786 | 3,945 | -49% | 1 | 1 | 0% | 1,422 | 3,107 | +118% | 0 | 0 | — |
case-10 | fail→fail | 11,546 | 9,096 | -21% | 1 | 1 | 0% | 2,244 | 4,097 | +83% | 0 | 0 | — |
case-11 | fail→pass | 10,368 | 6,095 | -41% | 1 | 1 | 0% | 2,061 | 3,566 | +73% | 0 | 0 | — |
case-12 | fail→pass | 11,880 | 4,219 | -64% | 1 | 1 | 0% | 2,333 | 3,091 | +32% | 0 | 0 | — |
case-13 | fail→pass | 9,761 | 4,539 | -53% | 1 | 1 | 0% | 1,863 | 3,103 | +67% | 0 | 0 | — |
case-14 | pass→pass | 5,834 | 3,914 | -33% | 1 | 1 | 0% | 1,120 | 2,919 | +161% | 0 | 0 | — |
case-15 | pass→pass | 5,355 | 3,534 | -34% | 1 | 1 | 0% | 1,139 | 3,030 | +166% | 0 | 0 | — |
case-16 | pass→pass | 8,592 | 2,804 | -67% | 1 | 1 | 0% | 1,538 | 2,759 | +79% | 0 | 0 | — |
case-17 | pass→pass | 4,911 | 2,617 | -47% | 1 | 1 | 0% | 1,007 | 2,749 | +173% | 0 | 0 | — |
case-18 | fail→pass | 9,071 | 5,313 | -41% | 1 | 1 | 0% | 1,539 | 3,255 | +112% | 0 | 0 | — |
case-19 | fail→pass | 10,570 | 3,232 | -69% | 1 | 1 | 0% | 2,184 | 2,923 | +34% | 0 | 0 | — |
case-20 | pass→pass | 13,821 | 10,727 | -22% | 1 | 1 | 0% | 2,540 | 4,300 | +69% | 0 | 0 | — |
case-21 | pass→pass | 13,161 | 6,837 | -48% | 1 | 1 | 0% | 2,342 | 3,570 | +52% | 0 | 0 | — |
case-22 | pass→pass | 8,126 | 5,001 | -38% | 1 | 1 | 0% | 1,666 | 3,381 | +103% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +41 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.