Skip to content

Commit

Permalink
chore(R-CMD-check.yaml): update workflow link to point to the v2 bran…
Browse files Browse the repository at this point in the history
…ch of r-lib/actions repository

chore(R-CMD-check.yaml): update actions/checkout to version 3
chore(R-CMD-check.yaml): update actions/setup-pandoc to version 2
chore(R-CMD-check.yaml): update actions/setup-r to version 2
chore(R-CMD-check.yaml): update actions/setup-r-dependencies to version 2
chore(R-CMD-check.yaml): remove unused steps and add needs: check to setup-r-dependencies
chore(R-CMD-check.yaml): update actions/check-r-package to version 2 and add upload-snapshots: true
chore(README.Rmd): update R-CMD-check badge link to point to the R-CMD-check workflow file
chore(codecov.yml): delete codecov.yml file as it is no longer needed
  • Loading branch information
PMassicotte committed Dec 10, 2023
1 parent 0697288 commit 58baa15
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 37 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/R-CMD-check.yaml
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
Expand All @@ -18,42 +18,32 @@ jobs:
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'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- { 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@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v1
- 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@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v1

- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
- uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
upload-snapshots: true
2 changes: 1 addition & 1 deletion README.Rmd
Expand Up @@ -21,7 +21,7 @@ knitr::opts_chunk$set(
[![Codecov test coverage](https://codecov.io/gh/ropensci/gitignore/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropensci/gitignore?branch=main)
[![DOI](https://zenodo.org/badge/184759416.svg)](https://zenodo.org/badge/latestdoi/184759416)
[![rOpenSci peer-review](https://badges.ropensci.org/303_status.svg)](https://github.com/ropensci/software-review/issues/303)
[![R-CMD-check](https://github.com/PMassicotte/gitignore/workflows/R-CMD-check/badge.svg)](https://github.com/PMassicotte/gitignore/actions)
[![R-CMD-check](https://github.com/PMassicotte/gitignore/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/PMassicotte/gitignore/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

Based on the definition proposed by [freecodecamp](https://www.freecodecamp.org/news/gitignore-what-is-it-and-how-to-add-to-repo/):
Expand Down
12 changes: 0 additions & 12 deletions codecov.yml

This file was deleted.

0 comments on commit 58baa15

Please sign in to comment.