-
-
Notifications
You must be signed in to change notification settings - Fork 40
60 lines (47 loc) · 1.38 KB
/
ci.yml
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
51
52
53
54
55
56
57
58
59
60
# This workflow will do a clean install of the dependencies and run tests across different versions
#
# Requires scripts:
# - bin/run_lints.R
# - bin/run_tests.R
name: Exercise tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
jobs:
precheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.3.1
use-public-rspm: true
- name: Install project dependencies
run: |
install.packages(c("testthat", "jsonlite", "lintr"))
shell: Rscript {0}
- name: Run exercism/r ci pre-check (checks config, lint code) for all exercises
run: |
source("bin/run_lints.R")
shell: Rscript {0}
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
R: [ '4.3.1' ]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
- name: Install project dependencies
run: |
install.packages(c("testthat", "jsonlite", "lintr"))
shell: Rscript {0}
- name: Run exercism/r ci (runs tests) for all exercises
run: |
source("bin/run_tests.R")
shell: Rscript {0}