Add square-root
exercise
#460
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.R }} | |
- name: Install project dependencies | |
run: | | |
install.packages(c("testthat", "jsonlite", "lintr", "dplyr")) | |
shell: Rscript {0} | |
- name: Run exercism/r ci (runs tests) for all exercises | |
run: | | |
source("bin/run_tests.R") | |
shell: Rscript {0} |