From c3ed468e5ed151c53042525aca26637bb2559e5c Mon Sep 17 00:00:00 2001 From: alecw Date: Mon, 11 Mar 2024 15:50:15 -0400 Subject: [PATCH] Enable git action to build DropSeq.utilities R package --- .github/workflows/DropSeq.utilities.r.yml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/DropSeq.utilities.r.yml diff --git a/.github/workflows/DropSeq.utilities.r.yml b/.github/workflows/DropSeq.utilities.r.yml new file mode 100644 index 00000000..9abbb9ce --- /dev/null +++ b/.github/workflows/DropSeq.utilities.r.yml @@ -0,0 +1,43 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: DropSeq.utilities R package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['4.1.1'] + + steps: + - uses: actions/checkout@v3 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + setwd("src/R/packages/DropSeq.utilities") + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: | + setwd("src/R/packages/DropSeq.utilities") + rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0}