Skip to content

Commit

Permalink
ci(R/test.yml): change installation order
Browse files Browse the repository at this point in the history
  • Loading branch information
bmascat committed Jun 24, 2024
1 parent 054b1f1 commit afc75bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- name: Setup R
uses: r-lib/actions/setup-r@v2

- name: Install devtools
run: |
options(repos = c(CRAN = "https://cloud.r-project.org"))
utils::install.packages("devtools")
library(devtools)
shell: Rscript {0}

- name: Set CRAN mirror and install renv
run: |
options(repos = c(CRAN = "https://cloud.r-project.org"))
Expand All @@ -23,15 +30,8 @@ jobs:

- name: Install dependencies
uses: r-lib/actions/setup-renv@v2

- name: Install devtools
run: |
options(repos = c(CRAN = "https://cloud.r-project.org"))
utils::install.packages("devtools")
shell: Rscript {0}

- name: Run tests
run: |
library(devtools)
devtools::test()
shell: Rscript {0}

0 comments on commit afc75bc

Please sign in to comment.