Skip to content

Commit

Permalink
ci: Test on both main and dev validator branches
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 11, 2024
1 parent d549036 commit 3d7d42b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/validate_datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
bids-validator: [stable, dev, legacy]
bids-validator: [stable, main, dev, legacy]

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

Expand Down Expand Up @@ -49,14 +49,22 @@ jobs:
deno install -Agf -n bids-validator jsr:@bids/validator
shell: bash

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

- name: Install BIDS validator (dev)
if: matrix.bids-validator == 'dev'
run: |
git clone -b dev https://github.com/bids-standard/bids-validator/ ../bids-validator
cd ../bids-validator
deno install -Agf src/bids-validator.ts
shell: bash

- name: Install BIDS validator (legacy)
if: "matrix.bids-validator == 'legacy'"
run: |
Expand Down

0 comments on commit 3d7d42b

Please sign in to comment.