File tree 2 files changed +12
-14
lines changed
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,17 @@ name: CI
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
7
- name : e2e tests
8
-
9
- runs-on : ubuntu-latest
10
-
6
+ job :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
11
+ node : ['12', '14', '15']
11
12
steps :
12
13
- uses : actions/checkout@v2
13
- - name : Use Node.js 12.x
14
+ - name : Setup node
14
15
uses : actions/setup-node@v1
15
16
with :
16
- node-version : 12
17
+ node-version : ${{ matrix.node }}
17
18
- run : yarn install --frozen-lockfile
18
19
- run : yarn test
Original file line number Diff line number Diff line change 1
1
const del = require ( 'del' ) ;
2
+ const execa = require ( 'execa' ) ;
2
3
const gulp = require ( 'gulp' ) ;
3
- const { spawn } = require ( 'child_process' ) ;
4
4
5
5
gulp . task ( 'clean' , ( ) => {
6
6
return del ( './lib/*' , { force : true } ) ;
7
7
} ) ;
8
8
9
- gulp . task ( 'typescript' , cb => {
10
- const cmd = spawn ( 'tsc' , { stdio : 'inherit' } ) ;
11
- cmd . on ( 'close' , code => {
12
- console . log ( `The process exited with code ${ code } ` ) ;
13
- cb ( code ) ;
14
- } ) ;
9
+ gulp . task ( 'typescript' , async ( ) => {
10
+ const { exitCode } = await execa ( 'tsc' , { stdio : 'inherit' } ) ;
11
+ console . log ( `The process exited with code ${ exitCode } ` ) ;
15
12
} ) ;
16
13
17
14
gulp . task ( 'copy' , ( ) => {
You can’t perform that action at this time.
0 commit comments