Skip to content

add templates for allergies and perfect-numbers #826

add templates for allergies and perfect-numbers

add templates for allergies and perfect-numbers #826

Workflow file for this run

# 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}