From da6eb82cf1cebd83b5be99e369b3e4256d3cb29a Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 11 Nov 2024 14:07:40 -0500 Subject: [PATCH] ci: Test on both main and dev validator branches --- .github/workflows/validate_datasets.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate_datasets.yml b/.github/workflows/validate_datasets.yml index cab254ffa..fe3d04215 100644 --- a/.github/workflows/validate_datasets.yml +++ b/.github/workflows/validate_datasets.yml @@ -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 }} @@ -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//bids-validator/raw//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 compile -Agf -o $DENO_INSTALL/bin/bids-validator src/bids-validator.ts + shell: bash + - name: Install BIDS validator (legacy) if: "matrix.bids-validator == 'legacy'" run: |