Skip to content

Commit a32d466

Browse files
committed
run tests in github actions
1 parent 065071b commit a32d466

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x, 15.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm ci
25+
- run: npm test-ci

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ module.exports = function(grunt) {
250250
]);
251251
});
252252

253-
// Travis CI task.
254-
grunt.registerTask('travis', [
253+
// CI task.
254+
grunt.registerTask('ci', [
255255
'build',
256256
'mochaTest',
257257
'karma:ci'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"uglify-js": "latest"
5252
},
5353
"scripts": {
54-
"test": "grunt"
54+
"test": "grunt",
55+
"test-ci": "grunt ci"
5556
},
5657
"ender": "./ender.js",
5758

0 commit comments

Comments
 (0)