File tree Expand file tree Collapse file tree 6 files changed +49
-18
lines changed Expand file tree Collapse file tree 6 files changed +49
-18
lines changed Original file line number Diff line number Diff line change 1+ # Owner
2+ * @ JuneAndGreen
Original file line number Diff line number Diff line change 1+ # Github actions workflow name
2+ name : CI
3+
4+ # Triggers the workflow on push or pull request events
5+ on :
6+ push :
7+ branches : [master]
8+ pull_request :
9+ branches : [master]
10+
11+ jobs :
12+ jest_test :
13+ name : miniprogram-simulate test with jest
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - uses : actions/setup-node@v3
19+ with :
20+ node-version : 16
21+ - run : npm install
22+ - run : npm run test
23+ - run : npm run codecov
24+
25+ karma_test :
26+ name : miniprogram-simulate test with karma
27+ runs-on : ubuntu-latest
28+
29+ steps :
30+ - uses : actions/checkout@v3
31+ - uses : actions/setup-node@v3
32+ with :
33+ node-version : 16
34+ - run : npm install
35+ - run : npm i puppeteer@latest
36+ - run : npm run karma
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# miniprogram-simulate
22
33[ ![ ] ( https://img.shields.io/npm/v/miniprogram-simulate.svg?style=flat )] ( https://www.npmjs.com/package/miniprogram-simulate )
4- [ ![ ] ( https://img.shields.io/travis/ wechat-miniprogram/miniprogram-simulate. svg )] ( https://github.com/wechat-miniprogram/miniprogram-simulate )
5- [ ![ ] ( https://img.shields.io/github/license/wechat-miniprogram/miniprogram-simulate.svg )] ( https://github.com/wechat-miniprogram/miniprogram-simulate )
6- [ ![ ] ( https://img.shields.io/codecov/c/github/wechat-miniprogram/miniprogram-simulate.svg )] ( https://github.com /wechat-miniprogram/miniprogram-simulate )
4+ [ ![ ] ( https://github.com/ wechat-miniprogram/miniprogram-simulate/actions/workflows/ci.yml/badge. svg?branch=master )] ( https://github.com/wechat-miniprogram/miniprogram-simulate/actions/workflows/ci.yml?query=branch%3Amaster+ )
5+ [ ![ ] ( https://img.shields.io/github/license/wechat-miniprogram/miniprogram-simulate.svg )] ( https://github.com/wechat-miniprogram/miniprogram-simulate/blob/master/LICENSE )
6+ [ ![ ] ( https://img.shields.io/codecov/c/github/wechat-miniprogram/miniprogram-simulate.svg )] ( https://app.codecov.io/gh /wechat-miniprogram/miniprogram-simulate )
77
88## 介绍
99
Original file line number Diff line number Diff line change 11// Karma configuration
22// Generated on Fri Jan 11 2019 20:11:14 GMT+0800 (CST)
33
4+ process . env . CHROME_BIN = require ( 'puppeteer' ) . executablePath ( ) ;
45const path = require ( 'path' )
56
67module . exports = function ( config ) {
@@ -77,12 +78,12 @@ module.exports = function(config) {
7778
7879 // start these browsers
7980 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
80- browsers : [ 'Chrome ' ] ,
81+ browsers : [ 'ChromeHeadless ' ] ,
8182
8283
8384 // Continuous Integration mode
8485 // if true, Karma captures browsers, runs the tests and exits
85- singleRun : false ,
86+ singleRun : true ,
8687
8788 // Concurrency level
8889 // how many browser should be started simultaneous
Original file line number Diff line number Diff line change 4747 "eslint-plugin-node" : " ^7.0.1" ,
4848 "eslint-plugin-promise" : " ^3.8.0" ,
4949 "jest" : " ^26.0.1" ,
50- "karma" : " ^3.1.4 " ,
50+ "karma" : " ^6.3.20 " ,
5151 "karma-chai" : " ^0.1.0" ,
52- "karma-chrome-launcher" : " ^2.2.0 " ,
52+ "karma-chrome-launcher" : " ^3.1.1 " ,
5353 "karma-dirname-preprocessor" : " latest" ,
5454 "karma-filemap-preprocessor" : " latest" ,
55- "karma-mocha" : " ^1.3.0 " ,
56- "karma-webpack" : " ^3 .0.5 " ,
57- "mocha" : " ^5.2 .0" ,
55+ "karma-mocha" : " ^2.0.1 " ,
56+ "karma-webpack" : " ^4 .0.2 " ,
57+ "mocha" : " ^10.0 .0" ,
5858 "pretty-format" : " ^26.0.1" ,
5959 "webpack" : " ^4.41.2" ,
6060 "webpack-cli" : " ^3.3.10"
You can’t perform that action at this time.
0 commit comments