Skip to content

Commit

Permalink
Merge pull request #2111 from effigies/fix/schema-import
Browse files Browse the repository at this point in the history
fix: Import schema correctly from JSR
  • Loading branch information
rwblair authored Aug 26, 2024
2 parents b005d9d + 2c7239f commit f3c4d2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deno_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]
allow-net: [true, false]
fail-fast: false
defaults:
run:
working-directory: ./bids-validator
shell: bash

steps:
- uses: actions/checkout@v4
Expand All @@ -51,7 +53,13 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno test --allow-all --coverage=cov/ src/
- name: Set permissions with network access
run: echo 'PERMS=--allow-read --allow-write --allow-env --allow-run --allow-net' >> $GITHUB_ENV
if: ${{ matrix.allow-net }}
- name: Set permissions without network access
run: echo 'PERMS=--allow-read --allow-write --allow-env --allow-run --deny-net' >> $GITHUB_ENV
if: ${{ ! matrix.allow-net }}
- run: deno test $PERMS --coverage=cov/ src/
- name: Collect coverage
run: deno coverage cov/ --lcov --output=coverage.lcov
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion bids-validator/src/setup/loadSchema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Schema } from '../types/schema.ts'
import { objectPathHandler } from '../utils/objectPathHandler.ts'
import * as schemaDefault from '@bids/schema/schema' with { type: 'json' }
import { default as schemaDefault } from '@bids/schema/schema' with { type: 'json' }
import { setCustomMetadataFormats } from '../validators/json.ts'

/**
Expand Down

0 comments on commit f3c4d2e

Please sign in to comment.