File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
22
22
steps :
23
- - uses : actions/checkout@v1 # checkout repo content
23
+ - uses : actions/checkout@v4 # checkout repo content
24
+ with :
25
+ fetch-depth : 0
24
26
- uses : actions/setup-node@v4 # setup Node.js
25
27
with :
26
28
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
29
33
- name : Run tests
30
34
run : npm run test
31
35
Original file line number Diff line number Diff line change 18
18
runs-on : ubuntu-latest
19
19
20
20
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
22
27
- uses : actions/setup-node@v4 # setup Node.js
23
28
with :
24
29
node-version : ' 14.x'
You can’t perform that action at this time.
0 commit comments