-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (47 loc) · 1.29 KB
/
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
name: hub-config
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }}
on:
push:
branches: ['main']
paths: ['hub-config/**', '!**README**']
pull_request:
branches: ['main']
paths: ['hub-config/**', '!**README**']
workflow_dispatch:
jobs:
validate-hub-config:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
install-r: false
use-public-rspm: true
- name: Update R
run: |
sudo apt-get update
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: Infectious-Disease-Modeling-Hubs/hubAdmin, any::sessioninfo
- name: Run validations
env:
PR_NUMBER: ${{ github.event.number }}
run: |
library("hubAdmin")
hubAdmin::validate_config(
hub_path='.',
config=c("admin"),
config_path=NULL,
schema_version="from_config",
branch="main"
)
hubAdmin::validate_config(
hub_path='.',
config=c("tasks"),
config_path=NULL,
schema_version="from_config",
branch="main"
)
shell: Rscript {0}