-
-
Notifications
You must be signed in to change notification settings - Fork 45
50 lines (43 loc) · 1.1 KB
/
ci.yml
File metadata and controls
50 lines (43 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow will do a clean install of the dependencies and run tests across different versions
#
# Requires scripts:
# - bin/run_tests.R
name: Exercise tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "exercises/**"
- "bin/run_tests.R"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "exercises/**"
- "bin/run_tests.R"
- ".github/workflows/ci.yml"
jobs:
ci:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590
with:
r-version: 4.5.2
- uses: r-lib/actions/setup-r-dependencies@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590
with:
cache-version: 2
packages: |
testthat
jsonlite
dplyr
stringr
purrr
tibble
lubridate
forcats
- name: Run exercism/r ci (runs tests) for all exercises
run: |
source("bin/run_tests.R")
shell: Rscript {0}