Skip to content

Commit da6eb82

Browse files
committed
ci: Test on both main and dev validator branches
1 parent d549036 commit da6eb82

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/validate_datasets.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
platform: [ubuntu-latest, macos-latest, windows-latest]
24-
bids-validator: [stable, dev, legacy]
24+
bids-validator: [stable, main, dev, legacy]
2525

2626
runs-on: ${{ matrix.platform }}
2727

@@ -49,14 +49,22 @@ jobs:
4949
deno install -Agf -n bids-validator jsr:@bids/validator
5050
shell: bash
5151

52-
- name: Install BIDS validator (dev)
53-
if: matrix.bids-validator == 'dev'
52+
- name: Install BIDS validator (main)
53+
if: matrix.bids-validator == 'main'
5454
run: |
5555
# If unmerged validator PRs are needed for testing, you can use
5656
# https://github.com/<FORK>/bids-validator/raw/<BRANCH>/bids-validator/src/bids-validator.ts
5757
deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
5858
shell: bash
5959

60+
- name: Install BIDS validator (dev)
61+
if: matrix.bids-validator == 'dev'
62+
run: |
63+
git clone -b dev https://github.com/bids-standard/bids-validator/ ../bids-validator
64+
cd ../bids-validator
65+
deno compile -Agf -o $DENO_INSTALL/bin/bids-validator src/bids-validator.ts
66+
shell: bash
67+
6068
- name: Install BIDS validator (legacy)
6169
if: "matrix.bids-validator == 'legacy'"
6270
run: |

0 commit comments

Comments
 (0)