File tree 4 files changed +58
-59
lines changed 4 files changed +58
-59
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+ on :
3
+ - pull_request
4
+ - push
5
+
6
+ jobs :
7
+ Test :
8
+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ os :
14
+ - ubuntu-latest
15
+ - macos-latest
16
+ - windows-latest
17
+ node_version :
18
+ - 10
19
+ - 12
20
+ - 14
21
+ name : Node ${{ matrix.node_version }} on ${{ matrix.os }}
22
+
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ with :
26
+ submodules : true
27
+ - name : Cache
28
+ uses : actions/cache@v2
29
+ with :
30
+ path : |
31
+ 'node_modules'
32
+ key : ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json') }}
33
+
34
+ - name : Setup node
35
+ uses : actions/setup-node@v2-beta
36
+ with :
37
+ node-version : ${{ matrix.node_version }}
38
+
39
+ - name : Install dependencies
40
+ run : npm install
41
+
42
+ - name : Lint
43
+ run : npm run standard
44
+
45
+ - name : Run tests
46
+ run : |
47
+ npm run test:node
48
+ npm run test:native
49
+
50
+ Skip :
51
+ if : contains(github.event.head_commit.message, '[skip ci]')
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Skip CI 🚫
55
+ run : echo skip ci
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- image : Visual Studio 2015
2
-
3
- environment :
4
- matrix :
5
- - nodejs_version : " 8"
6
- - nodejs_version : " 12.14.1"
7
-
8
- platform :
9
- - x86
10
- - x64
11
-
12
- install :
13
- - ps : Install-Product node $env:nodejs_version
14
- - git submodule update --init
15
- - node --version
16
- - npm --version
17
- - npm install
18
-
19
- test_script :
20
- - npm run standard
21
- - npm run test:node
22
-
1
+ # empty appveyor
23
2
build : off
24
3
25
4
branches :
26
5
only :
27
- - master
6
+ - non-existing
Original file line number Diff line number Diff line change 8
8
"build:node" : " node-gyp rebuild" ,
9
9
"build:browser" : " script/build-browser-version.sh" ,
10
10
"build" : " npm run build:node && npm run build:browser" ,
11
- "test:native" : " script/test-native.js" ,
11
+ "test:native" : " node ./ script/test-native.js" ,
12
12
"test:node" : " mocha test/js/*.js" ,
13
13
"test:browser" : " SUPERSTRING_USE_BROWSER_VERSION=1 mocha test/js/*.js" ,
14
14
"test" : " npm run test:node && npm run test:browser" ,
You can’t perform that action at this time.
0 commit comments