Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
MAVEN_REPO_API_KEY: ${{ secrets.MAVEN_REPO_API_KEY }}

owasp-dependency-check:
if: ${{ github.event_name != 'pull_request' }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just did this so the OWASP tests would run against the branch... we can remove, but is there any harm in doing this?

uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/owasp-dependency-check.yml@main
secrets:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
Expand Down
15 changes: 8 additions & 7 deletions omod/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
var pkg = require("./package.json");
var webpackConfig = require('./webpack.config');
var webpackConfig = require('./webpack.config')({});
webpackConfig.devtool = 'inline-source-map';

//Disable CommonsChunkPlugin as it breaks tests.
var commonsChunkPluginIndex = webpackConfig.plugins.findIndex(function(plugin) { return plugin.chunkNames });
webpackConfig.plugins.splice(commonsChunkPluginIndex, 1);


// Disable splitChunks as it breaks tests.
webpackConfig.optimization = webpackConfig.optimization || {};
webpackConfig.optimization.splitChunks = false;
webpackConfig.optimization.runtimeChunk = false;

var karmaConfig = {
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
Expand All @@ -23,7 +24,7 @@ module.exports = function(config) {
}
},
files: [
{ pattern: 'node_modules/babel-polyfill/browser.js', instrument: false},
{ pattern: 'node_modules/@babel/polyfill/dist/polyfill.js', instrument: false},
{ pattern: pkg.config.sourceDir + '/karma.context.js' }
],
frameworks: ['jasmine'],
Expand Down
Loading