Skip to content

Commit

Permalink
add curl dependency to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bcallaway11 committed Sep 3, 2024
1 parent 44d5e58 commit 15e5def
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: R-CMD-check

on:
push:
branches: [main, master]
branches: [main, master] # Triggers on push to main or master
pull_request:
branches: [main, master]
workflow_dispatch:
branches: [main, master] # Triggers on pull requests to main or master
workflow_dispatch: # Allows manual triggering

jobs:
R-CMD-check:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Install system dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev libcurl4-openssl-dev

- name: Cache R packages
uses: actions/cache@v3
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: r-lib/actions/setup-r@v2

- name: Install system dependencies
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev libcurl4-openssl-dev

- name: Cache R packages
uses: actions/cache@v3
Expand All @@ -31,7 +31,12 @@ jobs:
${{ runner.os }}-r-
- name: Install R package dependencies
run: R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
cmd.exe /c "R -e \"install.packages('devtools'); devtools::install_deps(dependencies = TRUE)\""
else
R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"
fi
- name: Run tests
run: R -e "devtools::test()"

0 comments on commit 15e5def

Please sign in to comment.