CI fixes
This commit is contained in:
Родитель
4698e8248d
Коммит
b1906dc901
|
@ -29,5 +29,5 @@ jobs:
|
|||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
- run: npm test -- --verbose --runInBand
|
||||
timeout-minutes: 10
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"fetch-profiles": "ts-node --files src/fetch-profiles.ts",
|
||||
"validate-example": "ts-node --files src/shc-validator.ts --path testdata/valid_key.json --type jwkset --loglevel info",
|
||||
"pretest": "npm run fetch-examples && npm run fetch-profiles",
|
||||
"test": "jest --rootDir tests --verbose",
|
||||
"test": "jest --rootDir tests --silent",
|
||||
"generate-test-data": "ts-node --files src/generate-test-data",
|
||||
"update-validator": "git pull && npm install && npm run build",
|
||||
"lint": "eslint --config .eslintrc.json --ext .ts ./src ./tests",
|
||||
|
|
|
@ -190,7 +190,8 @@ test('jws: clear key store', validateApi(['test-example-00-d-jws-issuer-not-vali
|
|||
describe('FHIR validator tests', () => {
|
||||
const testif = (condition: boolean) => condition ? it : it.skip;
|
||||
const canRunFhirValidator = jreOrDockerAvailable();
|
||||
testif(canRunFhirValidator)('fhirbundle: validator=fhirvalidator', validateApi(['test-example-00-a-fhirBundle-profile-usa.json'], 'fhirbundle', [Array(8).fill(ec.FHIR_VALIDATOR_ERROR), [ec.FHIR_VALIDATOR_ERROR]], { validator: Validators.fhirvalidator }), 1000 * 60 * 5 /*5 minutes*/);
|
||||
testif(canRunFhirValidator)('fhirbundle: validator=fhirvalidator', validateApi(['test-example-00-a-fhirBundle-profile-usa.json'], 'fhirbundle',
|
||||
[Array(8).fill(ec.FHIR_VALIDATOR_ERROR), [ec.FHIR_VALIDATOR_ERROR]], { validator: Validators.fhirvalidator, logLevel: LogLevels.DEBUG }), 1000 * 60 * 5 /*5 minutes*/);
|
||||
});
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче