Skip to content

Commit 1b57dee

Browse files
committed
CRAN: add rhub workflow; include test regex fixes and C++ tidy
1 parent a7d3010 commit 1b57dee

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/rhub-cran.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: rhub-check
2+
3+
on:
4+
push:
5+
branches: [CRAN]
6+
pull_request:
7+
branches: [CRAN]
8+
workflow_dispatch:
9+
10+
jobs:
11+
rhub:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup R
18+
uses: r-lib/actions/setup-r@v2
19+
20+
- name: Install system dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libxml2-dev libssl-dev libcurl4-openssl-dev
24+
25+
- name: Install R packages
26+
run: |
27+
R -e "install.packages(c('remotes','rhub'), repos='https://cloud.r-project.org')"
28+
29+
- name: Run rhub check for CRAN
30+
run: |
31+
R -e "rhub::check_for_cran(path = '.', show_status = TRUE)"

0 commit comments

Comments
 (0)