File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,21 @@ jobs:
1212 timeout-minutes : 6
1313 strategy :
1414 matrix :
15- os : [ubuntu-latest, windows-latest ]
15+ os : [ubuntu-latest]
1616 fail-fast : false
1717 steps :
1818 - uses : actions/checkout@v2
19- - uses : actions/setup-node@v1
20- - run : npm ci
21- - run : npm run build
22- - run : npm test
19+ - name : Use Node.js
20+ uses : actions/setup-node@v1
21+ - name : Build and Test
22+ run : |
23+ npm ci
24+ npm run build
25+ if [ "${{ runner.os }}" == "Windows" ]; then
26+ npm test
27+ elif [ "${{ runner.os }}" == "macOS" ]; then
28+ npm test --browsers chrome,safari
29+ else
30+ xvfb-run --auto-servernum npm test
31+ fi
32+ shell : bash
Original file line number Diff line number Diff line change 1010 "type" : " git" ,
1111 "url" : " https://github.com/chartjs/chartjs-plugin-zoom.git"
1212 },
13+ "scripts" : {
14+ "build" : " gulp build" ,
15+ "test" : " gulp test"
16+ },
1317 "devDependencies" : {
1418 "chart.js" : " ^2.9.2" ,
1519 "coveralls" : " ^3.1.0" ,
You can’t perform that action at this time.
0 commit comments