-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (38 loc) · 1.19 KB
/
validate_hub_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Validate Hub Configuration
on:
workflow_dispatch:
jobs:
validate-hub_config_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: checkout data repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'european-modelling-hubs/RespiCompass'
ref: 'main'
path: './repo/'
# TEST ONLY -----------------------------------
- uses: r-lib/actions/setup-r@v2
with:
install-r: false
use-public-rspm: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libv8-dev libudunits2-dev libgdal-dev
# install test dep
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: hubverse-org/hubAdmin, any::sessioninfo
# validate hub configurations
- name: Run hub config validations
run: |
library("hubAdmin")
v <- hubAdmin::validate_hub_config(hub_path = "./repo", schema_version = "latest")
view_config_val_errors(v)
shell: Rscript {0}
- name: trace
run: echo "Validation completed"