Skip to content

Commit

Permalink
Add GitHub Action and badge
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Aug 18, 2023
1 parent 0262241 commit afbe31a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
- portage
name: Check Portage data workflow

jobs:
render:
name: Check data workflow
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
- name: Install any needed packages
run: |
install.packages(c("dplyr", "tidyr", "remotes" "readr", "lubridate"))
remotes::install_github('COMPASS-DOE/compasstools')
shell: Rscript {0}
- name: Check workflow
run: |
cd portage/
Rscript --verbose ./driver.R
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# data-workflows

<!-- badges: start -->
[![check-workflow](https://github.com/COMPASS-DOE/data-workflows/actions/workflows/check-workflow.yaml/badge.svg)](https://github.com/COMPASS-DOE/data-workflows/actions/workflows/check-workflow.yaml)
<!-- badges: end -->

Sensor data workflows and processing scripts

0 comments on commit afbe31a

Please sign in to comment.