Skip to content

Merge pull request #275 from aemon-j/tadhg-moore-patch-1 #92

Merge pull request #275 from aemon-j/tadhg-moore-patch-1

Merge pull request #275 from aemon-j/tadhg-moore-patch-1 #92

Workflow file for this run

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: lint
jobs:
lint:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_cran("rcmdcheck")
remotes::install_cran("xtable")
remotes::install_github("GLEON/rLakeAnalyzer")
remotes::install_github("aemon-j/GLM3r", ref = "v3.1.1")
remotes::install_github("aemon-j/FLakeR", ref = "inflow")
remotes::install_github("aemon-j/GOTMr")
remotes::install_github("aemon-j/SimstratR")
remotes::install_github("aemon-j/gotmtools")
remotes::install_github("aemon-j/MyLakeR")
remotes::install_github("USGS-R/glmtools", ref = "ggplot_overhaul")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("lintr")
shell: Rscript {0}
- name: Lint
run: |
LER_linters <- lintr::with_defaults(line_length_linter = lintr::line_length_linter(100),
commented_code_linter = NULL,
cyclocomp_linter = NULL,
paren_brace_linter = NULL,
spaces_left_parentheses_linter = NULL)
lintr::lint_package(linters = LER_linters)
shell: Rscript {0}