@@ -13,18 +13,18 @@ jobs:
1313      - name : checkout 
1414        uses : actions/checkout@master 
1515
16-       - uses : actions/setup-node@v1  
16+       - uses : actions/setup-node@v4  
1717        with :
18-           node-version : ' 16 ' 
18+           node-version : ' 20 ' 
1919
2020      - name : cache package-lock.json 
21-         uses : actions/cache@v2  
21+         uses : actions/cache@v4  
2222        with :
2323          path : package-temp-dir 
2424          key : lock-${{ github.sha }} 
2525
2626      - name : create package-lock.json 
27-         run : npm i --package-lock-only 
27+         run : npm i --package-lock-only --legacy-peer-deps  
2828
2929      - name : hack for singe file 
3030        run : | 
3434          cp package-lock.json package-temp-dir 
3535name : cache node_modules 
3636        id : node_modules_cache_id 
37-         uses : actions/cache@v2  
37+         uses : actions/cache@v4  
3838        with :
3939          path : node_modules 
4040          key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} 
@@ -47,16 +47,16 @@ jobs:
4747    runs-on : ubuntu-latest 
4848    steps :
4949      - name : checkout 
50-         uses : actions/checkout@master  
50+         uses : actions/checkout@v4  
5151
5252      - name : restore cache from package-lock.json 
53-         uses : actions/cache@v2  
53+         uses : actions/cache@v4  
5454        with :
5555          path : package-temp-dir 
5656          key : lock-${{ github.sha }} 
5757
5858      - name : restore cache from node_modules 
59-         uses : actions/cache@v2  
59+         uses : actions/cache@v4  
6060        with :
6161          path : node_modules 
6262          key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} 
@@ -70,16 +70,16 @@ jobs:
7070    runs-on : ubuntu-latest 
7171    steps :
7272      - name : checkout 
73-         uses : actions/checkout@master  
73+         uses : actions/checkout@v4  
7474
7575      - name : restore cache from package-lock.json 
76-         uses : actions/cache@v2  
76+         uses : actions/cache@v4  
7777        with :
7878          path : package-temp-dir 
7979          key : lock-${{ github.sha }} 
8080
8181      - name : restore cache from node_modules 
82-         uses : actions/cache@v2  
82+         uses : actions/cache@v4  
8383        with :
8484          path : node_modules 
8585          key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} 
@@ -93,21 +93,26 @@ jobs:
9393    runs-on : ubuntu-latest 
9494    steps :
9595      - name : checkout 
96-         uses : actions/checkout@master  
96+         uses : actions/checkout@v4  
9797
9898      - name : restore cache from package-lock.json 
99-         uses : actions/cache@v2  
99+         uses : actions/cache@v4  
100100        with :
101101          path : package-temp-dir 
102102          key : lock-${{ github.sha }} 
103103
104104      - name : restore cache from node_modules 
105-         uses : actions/cache@v2  
105+         uses : actions/cache@v4  
106106        with :
107107          path : node_modules 
108108          key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} 
109109
110110      - name : coverage 
111-         run : npm test -- --coverage && bash <(curl -s https://codecov.io/bash) 
111+         run : npm test -- --coverage 
112+ 
113+       - uses : codecov/codecov-action@v4 
114+         with :
115+           fail_ci_if_error : true  #  optional (default = false)
116+           token : ${{ secrets.CODECOV_TOKEN }}  #  required
112117
113118    needs : setup 
0 commit comments