From b1906dc901de539b231caf6809e3830d2e45465d Mon Sep 17 00:00:00 2001 From: Larry Joy Date: Tue, 18 Oct 2022 08:43:13 -0700 Subject: [PATCH] CI fixes --- .github/workflows/node.js.yml | 2 +- package.json | 2 +- tests/api.test.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a206d7c..27f6fce 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 diff --git a/package.json b/package.json index f409430..f292eca 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/api.test.ts b/tests/api.test.ts index 176f62d..7278928 100644 --- a/tests/api.test.ts +++ b/tests/api.test.ts @@ -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*/); });