Skip to content

Commit 9a513a0

Browse files
committed
chore(ci): Use bash always to avoid Windows carve-outs
1 parent a819d6a commit 9a513a0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/validate_datasets.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ concurrency:
1515
group: ${{ github.ref }}
1616
cancel-in-progress: true
1717

18+
defaults:
19+
run:
20+
shell: bash
21+
1822
jobs:
1923
build:
2024
strategy:
@@ -47,23 +51,20 @@ jobs:
4751
if: matrix.bids-validator == 'stable'
4852
run: |
4953
deno install -Agf -n bids-validator jsr:@bids/validator
50-
shell: bash
5154
5255
- name: Install BIDS validator (main)
5356
if: matrix.bids-validator == 'main'
5457
run: |
5558
# If unmerged validator PRs are needed for testing, you can use
5659
# https://github.com/<FORK>/bids-validator/raw/<BRANCH>/bids-validator/src/bids-validator.ts
5760
deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
58-
shell: bash
5961
6062
- name: Install BIDS validator (dev)
6163
if: matrix.bids-validator == 'dev'
6264
run: |
6365
git clone -b dev https://github.com/bids-standard/bids-validator/ ../bids-validator
6466
cd ../bids-validator
6567
deno compile -A -o $HOME/.deno/bin/bids-validator src/bids-validator.ts
66-
shell: bash
6768
6869
- name: Install BIDS validator (legacy)
6970
if: "matrix.bids-validator == 'legacy'"
@@ -78,7 +79,6 @@ jobs:
7879
echo "node\n----"; node --version
7980
echo "npm\n----"; npm --version
8081
echo "bids-validator"; bids-validator --version
81-
shell: bash
8282
8383
- name: Check that no large files are present
8484
if: "matrix.bids-validator == 'stable'"
@@ -93,26 +93,22 @@ jobs:
9393
echo "$found"
9494
exit 1;
9595
fi
96-
shell: bash
9796
9897
- name: Skip legacy validation for post-legacy datasets
9998
run: for DS in mrs_* dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
10099
if: matrix.bids-validator == 'legacy'
101-
shell: bash
102100

103101
- name: Skip stable validation for datasets with unreleased validator features
104102
# Replace ${EMPTY} with dataset patterns, when this is needed
105103
# Reset to "for DS in ${EMPTY}; ..." after a validator release
106104
run: for DS in ${EMPTY}; do touch $DS/.SKIP_VALIDATION; done
107105
if: matrix.bids-validator == 'stable'
108-
shell: bash
109106

110107
- name: Skip main validation for datasets with unreleased spec features
111108
# Replace ${EMPTY} with dataset patterns, when this is needed
112109
# Reset to "for DS in ${EMPTY}; ..." after a spec release
113110
run: for DS in dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
114111
if: matrix.bids-validator != 'dev'
115-
shell: bash
116112

117113
- name: Set BIDS_SCHEMA variable for dev version
118114
if: matrix.bids-validator == 'dev'
@@ -126,4 +122,3 @@ jobs:
126122
run: |
127123
cat ./run_tests.sh
128124
./run_tests.sh
129-
shell: bash

0 commit comments

Comments
 (0)