Add GitHub Action and badge #6
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
on: | |
pull_request: | |
branches: | |
- main | |
- portage | |
name: Check Portage data 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 | |
- name: Install needed packages | |
run: | | |
install.packages(c("dplyr", "tidyr", "remotes", "readr", "lubridate", "quarto")) | |
remotes::install_github("COMPASS-DOE/compasstools") | |
shell: Rscript {0} | |
- name: Check workflow | |
run: | | |
cd portage/ | |
Rscript --verbose ./driver.R |