@@ -15,6 +15,10 @@ concurrency:
15
15
group : ${{ github.ref }}
16
16
cancel-in-progress : true
17
17
18
+ defaults :
19
+ run :
20
+ shell : bash
21
+
18
22
jobs :
19
23
build :
20
24
strategy :
@@ -47,23 +51,20 @@ jobs:
47
51
if : matrix.bids-validator == 'stable'
48
52
run : |
49
53
deno install -Agf -n bids-validator jsr:@bids/validator
50
- shell : bash
51
54
52
55
- name : Install BIDS validator (main)
53
56
if : matrix.bids-validator == 'main'
54
57
run : |
55
58
# If unmerged validator PRs are needed for testing, you can use
56
59
# https://github.com/<FORK>/bids-validator/raw/<BRANCH>/bids-validator/src/bids-validator.ts
57
60
deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
58
- shell : bash
59
61
60
62
- name : Install BIDS validator (dev)
61
63
if : matrix.bids-validator == 'dev'
62
64
run : |
63
65
git clone -b dev https://github.com/bids-standard/bids-validator/ ../bids-validator
64
66
cd ../bids-validator
65
67
deno compile -A -o $HOME/.deno/bin/bids-validator src/bids-validator.ts
66
- shell : bash
67
68
68
69
- name : Install BIDS validator (legacy)
69
70
if : " matrix.bids-validator == 'legacy'"
78
79
echo "node\n----"; node --version
79
80
echo "npm\n----"; npm --version
80
81
echo "bids-validator"; bids-validator --version
81
- shell : bash
82
82
83
83
- name : Check that no large files are present
84
84
if : " matrix.bids-validator == 'stable'"
@@ -93,26 +93,22 @@ jobs:
93
93
echo "$found"
94
94
exit 1;
95
95
fi
96
- shell : bash
97
96
98
97
- name : Skip legacy validation for post-legacy datasets
99
98
run : for DS in mrs_* dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
100
99
if : matrix.bids-validator == 'legacy'
101
- shell : bash
102
100
103
101
- name : Skip stable validation for datasets with unreleased validator features
104
102
# Replace ${EMPTY} with dataset patterns, when this is needed
105
103
# Reset to "for DS in ${EMPTY}; ..." after a validator release
106
104
run : for DS in ${EMPTY}; do touch $DS/.SKIP_VALIDATION; done
107
105
if : matrix.bids-validator == 'stable'
108
- shell : bash
109
106
110
107
- name : Skip main validation for datasets with unreleased spec features
111
108
# Replace ${EMPTY} with dataset patterns, when this is needed
112
109
# Reset to "for DS in ${EMPTY}; ..." after a spec release
113
110
run : for DS in dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
114
111
if : matrix.bids-validator != 'dev'
115
- shell : bash
116
112
117
113
- name : Set BIDS_SCHEMA variable for dev version
118
114
if : matrix.bids-validator == 'dev'
@@ -126,4 +122,3 @@ jobs:
126
122
run : |
127
123
cat ./run_tests.sh
128
124
./run_tests.sh
129
- shell : bash
0 commit comments