-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (64 loc) · 2.07 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
on:
pull_request:
branches: [ "master", "main" ]
push:
branches: [ "master", "main" ]
jobs:
check_data_models:
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}
check_test_data:
runs-on: ubuntu-latest
name: Check test data
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout primed-file-checks
uses: actions/checkout@v3
with:
repository: UW-GAC/primed-file-checks
path: primed-file-checks
# Install Java to this VM. This Java version and distribution is compatible with Cromwell.
# This is the same step as used by broadinstitute/cromwell/.github/set_up_cromwell_action.
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
# Get cromwell jar file
- uses: robinraju/[email protected]
with:
repository: 'broadinstitute/cromwell'
tag: '87'
fileName: 'cromwell-87.jar'
- name: Validate test data
run: |
java -jar cromwell-87.jar run primed-file-checks/validate_phenotype_model.wdl --inputs test_data/wdl_inputs_validate_phenotype_model.json
shell: bash
- name: Success!
run: echo "Success!"