Skip to content

Commit

Permalink
Use GHA workflow to install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 16, 2024
1 parent 9e5593b commit a476bc2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ jobs:
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040
with:
r-version: ${{ matrix.R }}
r-version: 4.3.1

- name: Install project dependencies
run: |
install.packages(c("testthat", "jsonlite", "lintr", "dplyr", "stringr", "readr", "purrr", "tibble"))
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040
with:
cache-version: 1
extra-packages: |
testthat
jsonlite
dplyr
stringr
readr
purrr
tibble
- name: Run exercism/r ci (runs tests) for all exercises
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040
with:
r-version: 4.3.1
use-public-rspm: true

- name: Install project dependencies
run: |
install.packages(c("testthat", "jsonlite", "lintr"))
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040
with:
cache-version: 1
extra-packages: |
lintr
- name: Run exercism/r ci pre-check (checks config, lint code) for all exercises
run: |
Expand Down

0 comments on commit a476bc2

Please sign in to comment.