Skip to content

Commit

Permalink
update github actions configs
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Apr 18, 2024
1 parent a7a2915 commit df8996a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -34,7 +34,7 @@ jobs:

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@v4.1.4
with:
clean: true
branch: gh-pages
Expand Down
38 changes: 23 additions & 15 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build
# R-CMD-check

name: Build
name: R-CMD-check

on:
push:
Expand All @@ -13,35 +13,43 @@ jobs:
name: R ${{ matrix.config.r }} | ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: '4.2.1', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
INSPIRE_API_ENDPOINT: ${{ secrets.INSPIRE_API_ENDPOINT }}
INSPIRE_API_KEY: ${{ secrets.INSPIRE_API_KEY }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

#R Set-up
- name: Set up R ${{ matrix.config.r }}
uses: r-lib/actions/setup-r@v1
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
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
sf
units
ncdf4
jqr
jsonld
emld
EML
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@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

0 comments on commit df8996a

Please sign in to comment.