Skip to content

Commit

Permalink
Update GitHub Actions workflow for R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
noluyorAbi committed Jul 9, 2024
1 parent 5ce7882 commit 4f31eab
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,37 @@ jobs:
R-CMD-check:
runs-on: ubuntu-latest

strategy:
matrix:
config:
- { r: '4.0.5' }
- { r: '4.1.0' }

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- name: Install system dependencies
run: |
sudo apt-get install -y libxml2-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get update
sudo apt-get install -y libxml2-dev libssl-dev libcurl4-openssl-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev
- name: Cache R packages
uses: actions/cache@v2
with:
path: ~/.R/Library
key: ${{ runner.os }}-R-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}
restore-keys: |
${{ runner.os }}-R-${{ matrix.config.r }}-
- name: Install R package dependencies
run: |
install.packages('devtools')
install.packages(c('devtools', 'textshaping', 'ragg', 'pkgdown'), dependencies = TRUE)
devtools::install_deps(dependencies = TRUE)
shell: Rscript {0}

Expand Down

0 comments on commit 4f31eab

Please sign in to comment.