File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,12 @@ jobs:
39
39
strategy :
40
40
matrix :
41
41
os : [ubuntu-22.04, macos-12, windows-2022]
42
+ allow-net : [true, false]
42
43
fail-fast : false
43
44
defaults :
44
45
run :
45
46
working-directory : ./bids-validator
47
+ shell : bash
46
48
47
49
steps :
48
50
- uses : actions/checkout@v4
51
53
- uses : denoland/setup-deno@v1
52
54
with :
53
55
deno-version : v1.x
54
- - run : deno test --allow-all --coverage=cov/ src/
56
+ - name : Set permissions with network access
57
+ run : echo 'PERMS=--allow-read --allow-write --allow-env --allow-run --allow-net' >> $GITHUB_ENV
58
+ if : ${{ matrix.allow-net }}
59
+ - name : Set permissions without network access
60
+ run : echo 'PERMS=--allow-read --allow-write --allow-env --allow-run --deny-net' >> $GITHUB_ENV
61
+ if : ${{ ! matrix.allow-net }}
62
+ - run : deno test $PERMS --coverage=cov/ src/
55
63
- name : Collect coverage
56
64
run : deno coverage cov/ --lcov --output=coverage.lcov
57
65
if : ${{ always() }}
Original file line number Diff line number Diff line change 1
1
import type { Schema } from '../types/schema.ts'
2
2
import { objectPathHandler } from '../utils/objectPathHandler.ts'
3
- import * as schemaDefault from '@bids/schema/schema' with { type : 'json' }
3
+ import { default as schemaDefault } from '@bids/schema/schema' with { type : 'json' }
4
4
import { setCustomMetadataFormats } from '../validators/json.ts'
5
5
6
6
/**
You can’t perform that action at this time.
0 commit comments