Skip to content

Merge pull request #25 from dfe-analytical-services/feedback_variance #45

Merge pull request #25 from dfe-analytical-services/feedback_variance

Merge pull request #25 from dfe-analytical-services/feedback_variance #45

Workflow file for this run

on:
push:
branches:
- main
- development
pull_request:
name: shiny-tests
jobs:
automatedTests:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Restore renv snapshot
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore()
- name: Run tests
shell: Rscript {0}
run: |
shiny::runTests(".", assert = TRUE)
- name: Upload test results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-tests
path: tests