-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 979 Bytes
/
ci.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
on:
pull_request:
branches: [ "master", "main" ]
push:
branches: [ "master", "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
data_model_file: [
'PRIMED_phenotype_data_model.json',
'PRIMED_genotype_data_model.json',
'PRIMED_GSR_data_model.json'
]
name: Check data model
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.2.3"
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
packages: github::UW-GAC/AnvilDataModels, any::sessioninfo
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Check ${{ matrix.data_model_file }} file
run: |
AnvilDataModels::json_to_dm("${{ matrix.data_model_file }}")
shell: Rscript {0}