Skip to content

Updated ui test workflow to run on mac os #9

Updated ui test workflow to run on mac os

Updated ui test workflow to run on mac os #9

on:
push:
branches:
- main
pull_request:
name: Automated tests
jobs:
automatedTests:

Check failure on line 11 in .github/workflows/automated-tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/automated-tests.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
- {os: macOS-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install git2r dependencies
run: sudo apt-get install -y libgit2-dev
- name: Cache renv packages
id: cache-renv
uses: actions/cache@v4
with:
path: cache-renv
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-
- uses: r-lib/actions/setup-renv@v2
- name: Run tests
shell: Rscript {0}
run: |
shinytest2::test_app()