Skip to content

Commit

Permalink
upgraded github action
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Jun 29, 2023
1 parent 727127f commit 945e7d7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
# 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:
branches:
- main
- master
branches: [main, master]
pull_request:
branches:
- main
- master
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: macOS-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# **prettifyAddins**

<!-- badges: start -->
[![R-CMD-check](https://github.com/stla/prettifyAddins/workflows/R-CMD-check/badge.svg)](https://github.com/stla/prettifyAddins/actions)
[![R-CMD-check](https://github.com/stla/prettifyAddins/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/stla/prettifyAddins/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

### RStudio addins to prettify JavaScript / HTML / CSS / Markdown / C++ and more.
Expand Down

0 comments on commit 945e7d7

Please sign in to comment.