8989 - uses : actions/setup-node@v3
9090 with :
9191 node-version : 22
92- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
92+ - name : Clear Yarn Cache
93+ run : yarn cache clean
94+ - run : |
95+ for i in {1..3}; do
96+ bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn" && break || sleep 5
97+ done
9398
9499 run-smoke--yarn--node-22--redoc :
95100 needs : prepare-smoke
@@ -102,7 +107,12 @@ jobs:
102107 - uses : actions/setup-node@v3
103108 with :
104109 node-version : 22
105- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn"
110+ - name : Clear Yarn Cache
111+ run : yarn cache clean
112+ - run : |
113+ for i in {1..3}; do
114+ bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn" && break || sleep 5
115+ done
106116
107117 run-smoke--yarn--node-20 :
108118 needs : prepare-smoke
@@ -115,7 +125,12 @@ jobs:
115125 - uses : actions/setup-node@v3
116126 with :
117127 node-version : 20
118- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
128+ - name : Clear Yarn Cache
129+ run : yarn cache clean
130+ - run : |
131+ for i in {1..3}; do
132+ bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn" && break || sleep 5
133+ done
119134
120135 run-smoke--yarn--node-20--redoc :
121136 needs : prepare-smoke
@@ -128,7 +143,12 @@ jobs:
128143 - uses : actions/setup-node@v3
129144 with :
130145 node-version : 20
131- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn"
146+ - name : Clear Yarn Cache
147+ run : yarn cache clean
148+ - run : |
149+ for i in {1..3}; do
150+ bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn" && break || sleep 5
151+ done
132152
133153 run-smoke--pnpm--node-22 :
134154 needs : prepare-smoke
@@ -173,7 +193,14 @@ jobs:
173193 - uses : actions/setup-node@v3
174194 with :
175195 node-version : 22
176- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
196+ - name : Clear Yarn Cache
197+ run : |
198+ yarn cache clean
199+ Remove-Item -Path "$env:APPDATA\Local\Yarn\Cache" -Recurse -Force -ErrorAction SilentlyContinue
200+ Start-Sleep -Seconds 10
201+ - run : |
202+ Start-Sleep -Seconds 10
203+ bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
177204
178205 run-smoke--npm--node-20--windows :
179206 needs : prepare-smoke
@@ -201,7 +228,14 @@ jobs:
201228 - uses : actions/setup-node@v3
202229 with :
203230 node-version : 20
204- - run : bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
231+ - name : Clear Yarn Cache
232+ run : |
233+ yarn cache clean
234+ Remove-Item -Path "$env:APPDATA\Local\Yarn\Cache" -Recurse -Force -ErrorAction SilentlyContinue
235+ Start-Sleep -Seconds 10
236+ - run : |
237+ Start-Sleep -Seconds 10
238+ bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
205239
206240 run-smoke--docker-image :
207241 runs-on : ubuntu-latest
0 commit comments