File tree 5 files changed +32
-23
lines changed
5 files changed +32
-23
lines changed Original file line number Diff line number Diff line change 22
22
- name : Set up Node.js
23
23
uses : actions/setup-node@v4
24
24
with :
25
- node-version : 0.10
25
+ node-version : 20.18.1
26
26
27
27
# Install grunt-cli globally
28
28
- name : Install grunt-cli
34
34
35
35
# Run tests
36
36
- name : Run tests
37
- run : npm test
37
+ run : grunt ci
Original file line number Diff line number Diff line change 1
1
module . exports = function ( grunt ) {
2
- require ( 'load-grunt-config' ) ( grunt )
3
- // load npm tasks
4
- grunt . loadNpmTasks ( 'grunt-karma' )
5
- grunt . loadNpmTasks ( 'grunt-karma-coveralls' )
6
- }
2
+ // Load grunt configurations
3
+ require ( 'load-grunt-config' ) ( grunt , {
4
+ configPath : require ( 'path' ) . join ( __dirname , 'grunt' ) ,
5
+ init : true ,
6
+ } ) ;
7
+
8
+ // Load npm tasks
9
+ grunt . loadNpmTasks ( 'grunt-karma' ) ;
10
+ grunt . loadNpmTasks ( 'grunt-karma-coveralls' ) ;
11
+
12
+ // Default task
13
+ grunt . registerTask ( 'test' , [ 'karma:chrome' ] ) ;
14
+ } ;
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
'test' : [
3
- 'karma:phantom' ,
3
+ 'karma:chrome' ,
4
4
] ,
5
5
6
6
'sauce' : [
@@ -13,7 +13,7 @@ module.exports = {
13
13
'eslint' ,
14
14
'clean:coverage' ,
15
15
'karma:coverage' ,
16
- 'coveralls' ,
16
+ // 'coveralls', //doesn't seem to be a thing anymore.
17
17
//'sauce', TODO: investigate why sauce connect isnt working
18
18
] ,
19
19
}
Original file line number Diff line number Diff line change @@ -43,22 +43,24 @@ module.exports = {
43
43
} ,
44
44
} ,
45
45
46
- phantom : {
47
- frameworks : [ 'jasmine' , 'es5-shim' ] ,
48
- browsers : [ 'PhantomJS' ] ,
49
- } ,
50
-
51
46
chrome : {
52
- reporters : [ 'html' ] ,
53
- browsers : [ 'Chrome' ] ,
54
- autoWatch : true ,
55
- singleRun : false ,
47
+ frameworks : [ 'jasmine' ] ,
48
+ reporters : [ 'progress' , 'html' ] ,
49
+ browsers : [ 'ChromeHeadless' ] , // Use ChromeHeadless instead of Chrome or PhantomJS
50
+ customLaunchers : {
51
+ HeadlessChrome : {
52
+ base : 'ChromeHeadless' ,
53
+ flags : [ '--no-sandbox' , '--disable-gpu' ] , // Required for CI environments
54
+ } ,
55
+ } ,
56
+ autoWatch : false ,
57
+ singleRun : true ,
56
58
} ,
57
59
58
60
coverage : {
59
- frameworks : [ 'jasmine' , 'es5-shim' ] ,
61
+ frameworks : [ 'jasmine' ] ,
60
62
reporters : [ 'progress' , 'coverage' ] ,
61
- browsers : [ 'PhantomJS ' ] ,
63
+ browsers : [ 'ChromeHeadless ' ] ,
62
64
coverageReporter : {
63
65
reporters : [
64
66
{ type : 'html' , dir : 'coverage/' } ,
Original file line number Diff line number Diff line change 45
45
"jstransform" : " ^11.0.1" ,
46
46
"jstransform-loader" : " ^0.2.0" ,
47
47
"karma" : " ^0.13.3" ,
48
- "karma-chrome-launcher" : " ^0.2.0 " ,
48
+ "karma-chrome-launcher" : " ^0.2.3 " ,
49
49
"karma-coverage" : " ^0.4.2" ,
50
50
"karma-es5-shim" : " https://github.com/pokehanai/karma-es5-shim/archive/v2.1.0.tar.gz" ,
51
51
"karma-jasmine" : " ^0.3.6" ,
52
52
"karma-jasmine-html-reporter" : " ^0.1.8" ,
53
- "karma-phantomjs-launcher" : " ^0.2.0" ,
54
53
"karma-sauce-launcher" : " ^0.2.14" ,
55
54
"karma-webpack" : " ^1.7.0" ,
56
55
"load-grunt-config" : " ^0.17.1" ,
57
56
"lodash" : " ^4.17.11" ,
58
57
"node-libs-browser" : " ^0.5.2" ,
59
- "phantomjs " : " ^1.9.17 " ,
58
+ "puppeteer " : " ^24.1.0 " ,
60
59
"react" : " ^0.13.3" ,
61
60
"webpack" : " ^1.10.5"
62
61
}
You can’t perform that action at this time.
0 commit comments