-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from NCEAS/gha-repair
GitHub Action Repair
- Loading branch information
Showing
84 changed files
with
458 additions
and
5,440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
^Meta$ | ||
^doc$ | ||
^docs$ | ||
^dev$ | ||
^_pkgdown\.yml$ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,54 @@ | ||
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | ||
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
branches: [main, master] | ||
pull_request: | ||
branches: | ||
- dev | ||
- main | ||
branches: [main, master] | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: macOS-latest | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: macos-latest, r: 'release'} | ||
- {os: windows-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | ||
- {os: ubuntu-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'oldrel-1'} | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
PKG_SYSREQS: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: r-lib/actions/setup-pandoc@v1 | ||
- uses: r-lib/actions/setup-r@v1 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: ${{ matrix.config.http-user-agent }} | ||
use-public-rspm: true | ||
- name: Install udunits | ||
run: brew install udunits | ||
- 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} | ||
|
||
- name: dependencies on Linux | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get install -y libcurl4-gnutls-dev libicu-dev libjq-dev libnode-dev librdf0-dev libssl-dev libxml2-dev make pandoc | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck | ||
needs: check | ||
|
||
- uses: r-lib/actions/check-r-package@v2 | ||
with: | ||
upload-snapshots: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
@@ -12,27 +14,41 @@ name: pkgdown | |
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
# Only restrict concurrency for non-PR jobs | ||
concurrency: | ||
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
PKG_SYSREQS: false | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v1 | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install udunit2 | ||
run: sudo apt-get install libudunits2-dev | ||
- name: dependencies on Linux | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get install -y make libicu-dev libxml2-dev libssl-dev pandoc librdf0-dev libnode-dev libcurl4-gnutls-dev | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: pkgdown | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
||
- name: Deploy package | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
Rscript -e 'pkgdown::deploy_to_branch(github_pages = (branch == "gh-pages"), new_process = FALSE)' | ||
- name: Build site | ||
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Deploy to GitHub pages 🚀 | ||
if: github.event_name != 'pull_request' | ||
uses: JamesIves/[email protected] | ||
with: | ||
clean: false | ||
branch: gh-pages | ||
folder: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
Meta/ | ||
doc/ | ||
# Background R stuff | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
.httr-oauth | ||
.DS_Store | ||
|
||
# R project | ||
*.Rproj | ||
|
||
# Certain folders | ||
Meta/ | ||
doc/ | ||
docs/ | ||
|
||
# Ignore Mac file | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ Package: metajam | |
Type: Package | ||
Title: Easily Download Data and Metadata from 'DataONE' | ||
Version: 0.2.3 | ||
Date: 2020-10-14 | ||
Authors@R: c( | ||
person("Julien", "Brun", | ||
email = "[email protected]", | ||
|
@@ -15,6 +14,11 @@ Authors@R: c( | |
person("Mitchell", "Maier", | ||
comment= c(ORCID = "0000-0001-6955-0535"), | ||
role = "aut"), | ||
person("Nicholas", "Lyon", | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0003-3905-1078", | ||
"https://njlyon0.github.io/"), | ||
role = "ctb"), | ||
person("Nathan", "Hwangbo", | ||
email = "[email protected]", | ||
comment= c(ORCID = "0000-0002-3777-0821"), | ||
|
@@ -32,13 +36,19 @@ Authors@R: c( | |
comment = c(ORCID = "0000-0002-6388-0901"), | ||
role = "ctb") | ||
) | ||
Maintainer: Julien Brun <brun@nceas.ucsb.edu> | ||
Maintainer: Julien Brun <jb160@ucsb.edu> | ||
Description: A set of tools to foster the development of reproducible analytical workflow by simplifying the download of data and | ||
metadata from 'DataONE' (<https://www.dataone.org>) and easily importing this information into R. | ||
License: Apache License (== 2.0) | ||
URL: https://github.com/nceas/metajam, | ||
https://nceas.github.io/metajam/ | ||
Encoding: UTF-8 | ||
Language: en-US | ||
RoxygenNote: 7.2.3 | ||
SystemRequirements: Mac OSX: redland (>= 1.0.14) ; Linux: librdf0 (>= 1.0.14), | ||
librdf0-dev (>= 1.0.14) | ||
URL: https://nceas.github.io/metajam/ | ||
BugReports: https://github.com/nceas/metajam/issues | ||
Depends: | ||
R (>= 3.1.1) | ||
Imports: | ||
dataone, | ||
dplyr, | ||
|
@@ -51,13 +61,9 @@ Imports: | |
stringr, | ||
tibble, | ||
tidyr, | ||
rlang | ||
XML | ||
Suggests: | ||
testthat, | ||
knitr, | ||
rmarkdown, | ||
udunits2 | ||
Encoding: UTF-8 | ||
testthat | ||
VignetteBuilder: knitr | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.