diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index f71f106f..e1f5b1eb 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -37,6 +37,11 @@ jobs: with: lein: 2.9.5 + # Install openapi-schema-validator for openapi-tests + # Uses node version from the ubuntu-latest + - name: Install dependencies + run: npm ci + - name: Run tests run: ./scripts/test.sh clj @@ -75,9 +80,6 @@ jobs: - name: Install dependencies run: npm ci - # - name: Install modules - # run: ./scripts/lein-modules install - - name: Run tests run: ./scripts/test.sh cljs diff --git a/karma.conf.js b/karma.conf.js index fe7d6948..d8e38754 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -6,6 +6,7 @@ module.exports = function (config) { // The file itself files: ['ci.js'], frameworks: ['cljs-test'], + reporters: ['progress', 'junit'], plugins: ['karma-cljs-test', 'karma-chrome-launcher'], colors: true, logLevel: config.LOG_INFO, @@ -13,8 +14,5 @@ module.exports = function (config) { args: ["shadow.test.karma.init"], singleRun: true }, - junitReporter: { - outputDir: "target/results/cljs" - } }) }; diff --git a/package-lock.json b/package-lock.json index 1f47df73..38129674 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,7 @@ "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-cli": "^2.0.0", - "karma-cljs-test": "^0.1.0", - "karma-junit-reporter": "^2.0.1" + "karma-cljs-test": "^0.1.0" } }, "node_modules/@colors/colors": { @@ -1616,23 +1615,6 @@ "integrity": "sha1-y4YF7w4R+ab20o9Wul298m84mSM=", "dev": true }, - "node_modules/karma-junit-reporter": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/karma-junit-reporter/-/karma-junit-reporter-2.0.1.tgz", - "integrity": "sha512-VtcGfE0JE4OE1wn0LK8xxDKaTP7slN8DO3I+4xg6gAi1IoAHAXOJ1V9G/y45Xg6sxdxPOR3THCFtDlAfBo9Afw==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-is-absolute": "^1.0.0", - "xmlbuilder": "12.0.0" - }, - "engines": { - "node": ">= 8" - }, - "peerDependencies": { - "karma": ">=0.9" - } - }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", @@ -2963,16 +2945,6 @@ } } }, - "node_modules/xmlbuilder": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-12.0.0.tgz", - "integrity": "sha512-lMo8DJ8u6JRWp0/Y4XLa/atVDr75H9litKlb2E5j3V3MesoL50EBgZDWoLT3F/LztVnG67GjPXLZpqcky/UMnQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0" - } - }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index 85b98988..65dd659b 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-cli": "^2.0.0", - "karma-cljs-test": "^0.1.0", - "karma-junit-reporter": "^2.0.1" + "karma-cljs-test": "^0.1.0" }, "dependencies": { "shadow-cljs": "^2.28.20"