Merge pull request #191 from yvanlebras/patch-1 #144
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
# R-CMD-check | |
name: R-CMD-check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: R ${{ matrix.config.r }} | ${{ matrix.config.os }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
- {os: ubuntu-latest, r: 'release'} | |
- {os: ubuntu-latest, r: 'oldrel-1'} | |
env: | |
PKG_SYSREQS: false | |
INSPIRE_API_ENDPOINT: ${{ secrets.INSPIRE_API_ENDPOINT }} | |
INSPIRE_API_KEY: ${{ secrets.INSPIRE_API_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
#R Set-up | |
- name: Set up R ${{ matrix.config.r }} | |
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 | |
#Install dependencies | |
#Install dependencies on Linux | |
- name: Install dependencies on Linux | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y make libsodium-dev libicu-dev libxml2-dev libssl-dev pandoc librdf0-dev libnode-dev libcurl4-gnutls-dev libmysqlclient-dev libpq-dev zlib1g-dev make libjq-dev libsecret-1-dev libnetcdf-dev libpng-dev libgdal-dev gdal-bin libgeos-dev libproj-dev libsqlite3-dev libudunits2-dev | |
- name: Install dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck, any::XML, sf, units, ncdf4, jqr, jsonld, emld, EML | |
needs: check | |
cache-version: 5 | |
#Check R Package | |
- name: Check R package | |
uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
artifact-name: geometa_r-${{ matrix.config.r }}_${{ matrix.config.os }}-results |