File tree Expand file tree Collapse file tree 1 file changed +24
-10
lines changed Expand file tree Collapse file tree 1 file changed +24
-10
lines changed Original file line number Diff line number Diff line change 11name : ci
22on :
33 push :
4- branches : [ master, release, alpha, beta ]
4+ branches :
5+ - master
56 pull_request :
6- branches : [ '**' ]
7+ branches :
8+ - ' **'
79jobs :
810 test :
11+ strategy :
12+ matrix :
13+ include :
14+ - name : Node.js 14
15+ NODE_VERSION : 14
16+ - name : Node.js 16
17+ NODE_VERSION : 16
18+ - name : Node.js 18
19+ NODE_VERSION : 18
20+ - name : Node.js 20
21+ NODE_VERSION : 20
22+ fail-fast : false
23+ name : ${{ matrix.name }}
24+ timeout-minutes : 15
925 runs-on : ubuntu-latest
10- timeout-minutes : 30
1126 steps :
12- - name : Checkout repository
13- uses : actions/checkout@v2
14- - name : Setup Node
15- uses : actions/setup-node@v2
27+ - uses : actions/checkout@v2
28+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
29+ uses : actions/setup-node@v1
1630 with :
17- node-version : 14
31+ node-version : ${{ matrix.NODE_VERSION }}
1832 - name : Cache Node.js modules
1933 uses : actions/cache@v2
2034 with :
2135 path : ~/.npm
22- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
2337 restore-keys : |
24- ${{ runner.os }}-node-
38+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
2539 - name : Install dependencies
2640 run : npm ci
2741 - name : Build package
You can’t perform that action at this time.
0 commit comments