prepare for release #61
Workflow file for this run
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
# 2023-06-18 | |
# https://github.com/r-lib/actions/tree/v2/examples | |
# https://github.com/r-lib/actions#where-to-find-help | |
on: [push, pull_request, workflow_dispatch] | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
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 | |
COUCHDB_TEST_USER: ${{ secrets.COUCHDB_TEST_USER }} | |
COUCHDB_TEST_PWD: ${{ secrets.COUCHDB_TEST_PWD }} | |
steps: | |
# databases: | |
# https://github.com/ankane/setup-postgres#setup-postgres | |
# Works on Linux, Mac, and Windows | |
- name: PostgreSQL | |
uses: ankane/setup-postgres@v1 | |
with: | |
database: test | |
# https://github.com/ankane/setup-mongodb#setup-mongodb | |
# Works on Linux, Mac, and Windows | |
- name: MongoDB | |
uses: ankane/setup-mongodb@v1 | |
# https://github.com/ankane/setup-elasticsearch#setup-elasticsearch | |
# Works on Linux, Mac, and Windows | |
- name: ElasticSearch | |
uses: ankane/setup-elasticsearch@v1 | |
# https://github.com/iamssen/couchdb-github-action | |
- name: CouchDB | |
if: runner.os == 'Linux' | |
uses: iamssen/couchdb-github-action@master | |
with: | |
couchdb-version: '3.1' | |
# generic workflow: | |
- uses: actions/checkout@v3 | |
- 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 | |
# nodbi: | |
- name: Install development libraries | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y libjq-dev | |
- name: Install deps and duckdb extension library | |
run: | | |
install.packages(c("remotes", "covr", "rcmdcheck")) | |
remotes::install_github("r-dbi/RSQLite") | |
remotes::install_github("ropensci/nodbi") | |
remotes::install_deps(pkgdir = ".", dependencies = TRUE) | |
library(duckdb) | |
drv <- duckdb() | |
con <- dbConnect(drv) | |
dbExecute(con, 'INSTALL json;') | |
dbDisconnect(con) | |
duckdb_shutdown(drv) | |
shell: Rscript {0} | |
# generic workflow: | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
# test coverage: | |
- name: Test coverage | |
if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' | |
# covr::codecov() uploads using environment variable CODECOV_TOKEN | |
run: covr::codecov(quiet = FALSE) | |
shell: Rscript {0} | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |