File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ jobs:
2020 runs-on : ubuntu-latest
2121
2222 steps :
23- - uses : actions/checkout@v1 # checkout repo content
23+ - uses : actions/checkout@v4 # checkout repo content
24+ with :
25+ fetch-depth : 0
2426 - uses : actions/setup-node@v4 # setup Node.js
2527 with :
2628 node-version : ' 20.x'
27- - name : Install dependencies
28- run : npm i
29+ - name : Install dependencies from main
30+ run : |
31+ git checkout remotes/origin/main -- package.json
32+ npm i
2933 - name : Run tests
3034 run : npm run test
3135
Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919
2020 steps :
21- - uses : actions/checkout@v2 # checkout repo content
21+ - uses : actions/checkout@v4 # checkout repo content
22+ with :
23+ fetch-depth : 0
24+ - name : use the javascript environment from main
25+ run : |
26+ git checkout remotes/origin/main -- package.json
2227 - uses : actions/setup-node@v4 # setup Node.js
2328 with :
2429 node-version : ' 14.x'
You can’t perform that action at this time.
0 commit comments