Skip to content

Commit 378b96d

Browse files
authored
Finish GitHub Actions migration (#404)
1 parent d9b279a commit 378b96d

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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",

0 commit comments

Comments
 (0)