made todo labels consistent #3460
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
on: | |
push: | |
branches: [master] | |
pull_request: | |
name: code-quality | |
jobs: | |
lint-r: | |
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: | | |
r-lib/lintr | |
local::. | |
needs: lint | |
- name: Lint | |
run: lintr::lint_package(pattern = "(?i)[.](r|rmd)$") # TODO(#5830): use the default pattern | |
shell: Rscript {0} | |
env: | |
LINTR_ERROR_ON_LINT: true | |
R_LINTR_LINTER_FILE: .ci/.lintr | |
lint-c: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install Coccinelle | |
# relying on the action above us to have updated the package cache | |
run: /usr/bin/sudo apt-get -y install coccinelle | |
- name: Lint | |
run: | | |
Rscript .ci/lint.R .ci/linters/c src '[.][ch]$' | |
lint-po: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Check translations | |
# only pay attention to files edited in the current PR, otherwise we can get | |
# a situation like after #6424 where some untranslated messages were added | |
# as part of non-translation maintenance, but this GHA would go red repeatedly | |
# until a translation is added or the blank/fuzzy translations removed. We'd | |
# rather only have the failure on one PR, then ignore these files later. | |
run: | | |
Rscript .ci/lint.R .ci/linters/po po '[.]po$' | |
lint-md: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Lint | |
run: Rscript .ci/lint.R .ci/linters/md . '[.]R?md$' | |
lint-rd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Lint Rd files | |
run: Rscript .ci/lint.R .ci/linters/rd man '[.]Rd$' |