-
Notifications
You must be signed in to change notification settings - Fork 185
47 lines (38 loc) · 1.1 KB
/
repo-meta-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Various repo-level tests for code quality
on:
push:
branches: [main]
pull_request:
branches: [main]
name: repo-meta-tests
jobs:
repo-meta-tests:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::roxygen2
- name: Ensure lint metadata is tested
run: |
options(crayon.enabled = TRUE)
callr::rscript(".dev/lint_metadata_test.R")
shell: Rscript {0}
- name: Generate some foreign locales
run: |
sudo locale-gen en_US.utf8 hu_HU.utf8 ja_JP.utf8
- name: Ensure roxygen content matches man directory
run: |
callr::rscript(".dev/roxygen_test.R")
shell: Rscript {0}
- name: Ensure defunct linters exist
run: |
callr::rscript(".dev/defunct_linters_test.R")
shell: Rscript {0}