Skip to content

Commit

Permalink
add dockerfile and dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
  • Loading branch information
PatStLouis committed Dec 4, 2024
1 parent 5802907 commit 1baf630
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:18

WORKDIR /test-suite

COPY package.json ./
COPY tests/ ./tests
COPY config/ ./config

RUN npm i
CMD [ "npm", "t" ]
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"test": "mocha tests/ --reporter @digitalbazaar/mocha-w3c-interop-reporter --reporter-options abstract=\"$PWD/config/abstract.hbs\",reportDir=\"$PWD/reports\",respec=\"$PWD/config/respec.json\",suiteLog='./suite.log',templateData=\"$PWD/reports/index.json\",title=\"Data Integrity BBS Interoperability Report 1.0\" --timeout 15000 --preserve-symlinks --timeout 30000",
"test-allure": "npx mocha tests/ -R allure-mocha -O 'resultsDir=allure-results'",
"fetch-vc-di-test-vectors": "if [ ! -e tests/input/vc-di-bbs ]; then git clone --depth 1 https://github.com/w3c/vc-di-bbs.git tests/input/vc-di-bbs; fi",
"lint": "eslint .",
"postinstall": "npm run fetch-vc-di-test-vectors"
Expand Down Expand Up @@ -55,14 +56,15 @@
"data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion",
"jsonld": "^8.3.2",
"jsonld-document-loader": "^2.2.0",
"mocha": "^10.2.0",
"uuid": "^9.0.0",
"vc-test-suite-implementations": "github:w3c/vc-test-suite-implementations"
},
"devDependencies": {
"allure-mocha": "^3.0.6",
"eslint": "^8.52.0",
"eslint-config-digitalbazaar": "^5.0.1",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-unicorn": "^48.0.1"
"eslint-plugin-unicorn": "^48.0.1",
"mocha": "^11.0.1"
}
}

0 comments on commit 1baf630

Please sign in to comment.