4
4
push :
5
5
branches :
6
6
- master
7
- - ' v* ' # older version branches
7
+ - " v* " # older version branches
8
8
tags :
9
- - ' * '
9
+ - " * "
10
10
pull_request : {}
11
11
schedule :
12
- - cron : ' 0 6 * * 0' # weekly, on sundays
12
+ - cron : " 0 6 * * 0" # weekly, on sundays
13
13
14
14
concurrency :
15
15
group : ${{ github.head_ref || github.run_id }}
@@ -20,24 +20,24 @@ jobs:
20
20
name : Lint
21
21
runs-on : ubuntu-latest
22
22
steps :
23
- - name : Ensure long path support
24
- run : git config --global core.longpaths true
25
- - uses : actions/checkout@v1
26
- - uses : volta-cli/action@v1
27
- with :
28
- node-version : 16
29
- - name : Cache
30
- uses : actions/cache@v2
31
- with :
32
- path : node-modules
33
- key : ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}-default
34
- restore-keys : |
35
- ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}-default
36
- ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}
37
- ${{ runner.os }}-16-
38
- - name : install dependencies
39
- run : yarn install --frozen-lockfile
40
- - run : yarn lint
23
+ - name : Ensure long path support
24
+ run : git config --global core.longpaths true
25
+ - uses : actions/checkout@v1
26
+ - uses : volta-cli/action@v1
27
+ with :
28
+ node-version : 16
29
+ - name : Cache
30
+ uses : actions/cache@v2
31
+ with :
32
+ path : node-modules
33
+ key : ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}-default
34
+ restore-keys : |
35
+ ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}-default
36
+ ${{ runner.os }}-16-${{ hashFiles('**/package-lock.json') }}
37
+ ${{ runner.os }}-16-
38
+ - name : install dependencies
39
+ run : yarn install --frozen-lockfile
40
+ - run : yarn lint
41
41
42
42
test :
43
43
name : " Node ${{ matrix.node }} / TS: ${{ matrix.typescript }} - ${{ matrix.os }}"
47
47
strategy :
48
48
fail-fast : false
49
49
matrix :
50
- node : ['12', '14', '16' ]
51
- os : [' windows', ' ubuntu' ]
52
- typescript : [' default' ]
50
+ node : ["12", "14", "16" ]
51
+ os : [" windows", " ubuntu" ]
52
+ typescript : [" default" ]
53
53
yarn-flags : ["--frozen-lockfile"]
54
54
include :
55
55
- node : 12
@@ -66,32 +66,32 @@ jobs:
66
66
yarn-flags : " --no-lockfile"
67
67
68
68
steps :
69
- - name : Ensure long path support
70
- run : git config --global core.longpaths true
71
- - uses : actions/checkout@v1
72
- - uses : volta-cli/action@v1
73
- with :
74
- node-version : ${{ matrix.node }}
75
- - name : Cache
76
- uses : actions/cache@v2
77
- with :
78
- path : node-modules
79
- key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}-${{ matrix.typescript }}
80
- restore-keys : |
81
- ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}-${{ matrix.typescript }}
82
- ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
83
- ${{ runner.os }}-${{ matrix.node }}-
84
- - name : install dependencies
85
- run : yarn install ${{ matrix.yarn-flags }}
86
- - run : |
87
- git submodule init
88
- git submodule update --depth 1
89
- - name : Switch to alternate TS
90
- if : matrix.typescript != 'default'
91
- run : |
92
- yarn upgrade typescript@${{ matrix.typescript }}
93
- version=$(yarn tsc -v | grep Version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
94
- cd vendor/typescript
95
- git fetch origin release-${version} --depth 1
96
- git checkout FETCH_HEAD
97
- - run : yarn test:no-update
69
+ - name : Ensure long path support
70
+ run : git config --global core.longpaths true
71
+ - uses : actions/checkout@v1
72
+ - uses : volta-cli/action@v1
73
+ with :
74
+ node-version : ${{ matrix.node }}
75
+ - name : Cache
76
+ uses : actions/cache@v2
77
+ with :
78
+ path : node-modules
79
+ key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}-${{ matrix.typescript }}
80
+ restore-keys : |
81
+ ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}-${{ matrix.typescript }}
82
+ ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
83
+ ${{ runner.os }}-${{ matrix.node }}-
84
+ - name : install dependencies
85
+ run : yarn install ${{ matrix.yarn-flags }}
86
+ - run : |
87
+ git submodule init
88
+ git submodule update --depth 1
89
+ - name : Switch to alternate TS
90
+ if : matrix.typescript != 'default'
91
+ run : |
92
+ yarn upgrade typescript@${{ matrix.typescript }}
93
+ version=$(yarn tsc -v | grep Version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
94
+ cd vendor/typescript
95
+ git fetch origin release-${version} --depth 1
96
+ git checkout FETCH_HEAD
97
+ - run : yarn test:no-update
0 commit comments