Skip to content

update related to accessibility test #155

update related to accessibility test

update related to accessibility test #155

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: lint
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
- name: Install styler and roxygen
run: install.packages(c("styler", "roxygen2"))
shell: Rscript {0}
- name: Lint
run: |
style_df <- styler::style_pkg(dry = "on")
bad_style_df <- style_df[style_df$changed, ]
if (nrow(bad_style_df) > 0) {
error_message <- paste0(
nrow(bad_style_df),
"/",
nrow(style_df),
" files failed linting. Check with styler::style_pkg() and try again."
)
stop(error_message)
}
shell: Rscript {0}