Skip to content

Commit

Permalink
Re-arrange GHA workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
GegznaV committed May 2, 2024
1 parent f8e4aea commit 8b1798b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install dependencies (for R-devel)
if: matrix.config.r == 'devel'
run: |
remotes::install_cran("vdiffr", type = "source", force = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::devtools, any::remotes, local::.
Expand All @@ -58,21 +52,24 @@ jobs:
run: |
remotes::install_version("roxygen2", "7.2.3")
shell: Rscript {0}
needs: setup-r-dependencies

- name: Install dependencies (for R-devel)
if: matrix.config.r == 'devel'
run: |
remotes::install_cran("vdiffr", type = "source", force = TRUE)
shell: Rscript {0}
needs: setup-r-dependencies

- name: Install dependencies (for R-devel)
if: matrix.config.r == 'devel'
run: |
remotes::install_cran("vdiffr", type = "source", force = TRUE)
shell: Rscript {0}

- name: Install dependencies (for R-oldrel)
if: matrix.config.r == 'oldrel' || matrix.config.r == '3.6'
run: |
remotes::install_version("rgl", "0.100.50")
shell: Rscript {0}
needs: setup-r-dependencies

- name: Roxygenize
run: |
Expand Down

0 comments on commit 8b1798b

Please sign in to comment.