Skip to content

Commit

Permalink
master -> main (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Nov 8, 2021
1 parent 32cb9c5 commit c9233b7
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 208 deletions.
140 changes: 13 additions & 127 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,134 +1,20 @@
on:
push:
branches: [main, master, rc-**]
branches: [main, rc-**]
pull_request:
branches: [main, master]
branches: [main]
schedule:
- cron: '0 7 * * 1' # every monday

name: R-CMD-check
name: Package checks

jobs:
rversions:
name: R Versions
runs-on: ubuntu-latest
outputs:
devel: ${{ steps.devel.outputs.installed-r-version }}
release: ${{ steps.release.outputs.installed-r-version }}
oldrel1: ${{ steps.oldrel-1.outputs.installed-r-version }}
oldrel2: ${{ steps.oldrel-2.outputs.installed-r-version }}
oldrel3: ${{ steps.oldrel-3.outputs.installed-r-version }}
oldrel4: ${{ steps.oldrel-4.outputs.installed-r-version }}
steps:
- { name: devel, uses: r-lib/actions/setup-r@v1, id: devel, with: { r-version: devel, install-r: false } }
- { name: release, uses: r-lib/actions/setup-r@v1, id: release, with: { r-version: release, install-r: false } }
- { name: oldrel-1, uses: r-lib/actions/setup-r@v1, id: oldrel-1, with: { r-version: oldrel-1, install-r: false } }
- { name: oldrel-2, uses: r-lib/actions/setup-r@v1, id: oldrel-2, with: { r-version: oldrel-2, install-r: false } }
- { name: oldrel-3, uses: r-lib/actions/setup-r@v1, id: oldrel-3, with: { r-version: oldrel-3, install-r: false } }
- { name: oldrel-4, uses: r-lib/actions/setup-r@v1, id: oldrel-4, with: { r-version: oldrel-4, install-r: false } }

javascript:
runs-on: ubuntu-latest
name: javascript

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '12'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Check JavaScript
shell: bash
run: ./scripts/checkJSCurrent.sh

docs:
runs-on: ubuntu-20.04
name: docs

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v1
with:
cache-version: docs-1
extra-packages: roxygen2

- name: Check Docs
shell: bash
run: ./scripts/checkDocsCurrent.sh


## Website is not pkgdown; Run `source("tools/docs_update.R")` on release!
# website:
# uses: rstudio/shinycoreci/.github/workflows/call-website.yaml@v1
routine:
uses: rstudio/shinycoreci/.github/workflows/call-routine.yaml@v1
with:
node-version: '12'
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

needs:
- rversions
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: '${{ needs.rversions.outputs.release }}'}
- {os: windows-latest, r: '${{ needs.rversions.outputs.release }}'}
- {os: windows-latest, r: '3.6'}
- {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.devel }}', http-user-agent: "release" }
- {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.release }}'}
- {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.oldrel1 }}'}
- {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.oldrel2 }}'}
- {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.oldrel3 }}'}
# Currently can not test on R 3.4; Need R 3.5 (raster, rgdal)
# - {os: ubuntu-20.04, r: '${{ needs.rversions.outputs.oldrel4 }}'}

env:
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- name: Install mac deps
if: runner.os == 'macOS'
# OE> configure: error: geos-config not found or not executable.
# OE> ERROR: configuration failed for package ‘rgeos’
run: |
brew install geos gdal
- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck
- uses: r-lib/actions/check-r-package@v1

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
uses: rstudio/shinycoreci/.github/workflows/call-R-CMD-check.yaml@v1
11 changes: 0 additions & 11 deletions .lintr

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ Suggests:
RJSONIO,
purrr,
testthat (>= 3.0.0)
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Encoding: UTF-8
LazyData: true
2 changes: 1 addition & 1 deletion R/plugin-providers.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ providerTileOptions <- function(errorTileUrl = "", noWrap = FALSE,
#' List of all providers with their variations
#'
#' @format A list of characters
#' @source \url{https://github.com/leaflet-extras/leaflet-providers/blob/master/leaflet-providers.js}
#' @source \url{https://github.com/leaflet-extras/leaflet-providers/blob/main/leaflet-providers.js}
#'
#' @name providers
#' @export providers
Expand Down
2 changes: 1 addition & 1 deletion man/providers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
"grunt-mocha-test": "^0.13.3",
"mocha": "^9.1.2",
"source-map-support": "^0.5.19"
}
},
"version": "2.0.4-alpha.9000",
"files": []
}
16 changes: 0 additions & 16 deletions scripts/checkDocsCurrent.sh

This file was deleted.

16 changes: 0 additions & 16 deletions scripts/checkJSCurrent.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/revdepcheck.R

This file was deleted.

27 changes: 0 additions & 27 deletions scripts/rhub.R

This file was deleted.

0 comments on commit c9233b7

Please sign in to comment.