Skip to content
Snippets Groups Projects
Commit 460aa58e authored by Xiao Gui's avatar Xiao Gui
Browse files

fix github actions

parent 2924efdd
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,6 @@ jobs:
- name: npm install and test
run: |
npm i
npm test
\ No newline at end of file
npm test
env:
NODE_ENV: test
\ No newline at end of file
......@@ -6,6 +6,11 @@ const webpackTest = require('../webpack.test')
const webpackConfig = require('../webpack.dev')
const fullWebpack = merge(webpackTest, webpackConfig)
const singleRun = process.env.NODE_ENV === 'test'
const browsers = process.env.NODE_ENV === 'test'
? ['ChromeHeadless']
: ['Chrome']
module.exports = function(config) {
config.set({
......@@ -62,12 +67,12 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
browsers,
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
singleRun,
// Concurrency level
// how many browser should be started simultaneous
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment