File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,27 +2,33 @@ name: "CI"
22
33on :
44 push :
5- branches : [ "master " ]
5+ branches : [ "* " ]
66 pull_request :
7- branches : [ "master " ]
7+ branches : [ "* " ]
88 workflow_dispatch :
99
1010jobs :
1111 build :
12-
1312 runs-on : ubuntu-latest
1413
1514 steps :
16- - uses : actions/checkout@v3
15+ - uses : actions/checkout@v6
1716
1817 - name : Setup Node.js
19- uses : actions/setup-node@v3
18+ uses : actions/setup-node@v6
2019 with :
2120 node-version : ' lts/*'
2221
22+ - name : Cache Node.js modules
23+ uses : actions/cache@v3
24+ with :
25+ path : ~/.npm
26+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
27+ restore-keys : |
28+ ${{ runner.os }}-node-
29+
2330 - name : Install dependencies
24- run : npm install
31+ run : npm ci
2532
26- - name : run tests
33+ - name : Run tests
2734 run : npm test
28-
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ debug-stick*.mcpack
33debug-stick * .zip
44
55node_modules
6- package-lock.json
76
87pack /scripts /*
You can’t perform that action at this time.
0 commit comments