From 3e6be634e2d24393f4e721e8e9c5c66045b76f09 Mon Sep 17 00:00:00 2001 From: "Sean P. Myrick V19.1.7.2" Date: Sat, 9 Sep 2023 23:15:19 -0700 Subject: [PATCH] r_V1.yml r_V1.yml --- .github/workflowArchives/R/r_V1.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflowArchives/R/r_V1.yml diff --git a/.github/workflowArchives/R/r_V1.yml b/.github/workflowArchives/R/r_V1.yml new file mode 100644 index 0000000..52737bc --- /dev/null +++ b/.github/workflowArchives/R/r_V1.yml @@ -0,0 +1,40 @@ +# 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: R + +on: + push: + branches: [ "AI2001_Category-Source_Code-SC-Gosu_Main-dev" ] + pull_request: + branches: [ "AI2001_Category-Source_Code-SC-Gosu_Main-dev" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['3.6.3', '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: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0}