Skip to content

Add GitHub Action and badge #10

Add GitHub Action and badge

Add GitHub Action and badge #10

Workflow file for this run

on:
pull_request:
branches:
- main
- portage
name: Run test workflow
jobs:
render:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: release}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: quarto-dev/quarto-actions/setup@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::quarto
# any::dplyr
# any::tidyr
# any::readr
# any::lubridate
- name: Install needed packages
run: |
#install.packages(c("dplyr", "tidyr", "remotes", "readr", "lubridate"))
#remotes::install_github("COMPASS-DOE/compasstools")
pak::pkg_install("COMPASS-DOE/compasstools")
shell: Rscript {0}
- name: Run workflow
run: |
cd portage/
Rscript --verbose ./driver.R