Skip to content

add gitconfig to global if failed to find user.name #438

add gitconfig to global if failed to find user.name

add gitconfig to global if failed to find user.name #438

Workflow file for this run

on:
push:
branches:
- main
- master
- development
- transition
pull_request:
branches:
- main
- master
- development
- transition
name: R-CMD-check
jobs:
R-CMD-check:
if: "!contains(github.event.commits[0].message, '[skip-ci]')"
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'devel'}
- {os: windows-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'oldrel/1'}
- {os: windows-latest, nosuggests: false, r: 'oldrel/2'}
- {os: ubuntu-20.04, nosuggests: false, r: 'devel'}
- {os: ubuntu-20.04, nosuggests: false, r: 'release'}
- {os: ubuntu-20.04, nosuggests: true, r: 'release'}
- {os: ubuntu-20.04, nosuggests: false, r: 'oldrel/1'}
- {os: ubuntu-20.04, nosuggests: false, r: 'oldrel/2'}
env:
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: PredictiveEcology/actions/[email protected]
- uses: r-lib/actions/setup-r@v2
with:
Ncpus: 2
r-version: ${{ matrix.config.r }}
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
fastshp=?ignore
NLMR=?ignore
PredictiveEcology/Require@simplify4
PredictiveEcology/reproducible@development
PredictiveEcology/SpaDES.tools@development
- name: Install additional package dependencies
run: |
pak::pkg_install("ropensci/NLMR")
remotes::install_github("s-u/fastshp")
shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true