File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,35 +253,3 @@ jobs:
253253 - name : Make sure the Git HEAD did not change
254254 if : ${{ env.NEW_SHA != env.INITIAL_SHA }}
255255 run : exit 1
256-
257- test-custom-yarn-url :
258- name : Test custom Yarn URL
259- runs-on : ubuntu-latest
260- steps :
261- - uses : actions/checkout@v4
262- - name : Checkout and setup environment with custom Yarn URL
263- id : checkout-and-setup
264- uses : ./
265- with :
266- is-high-risk-environment : false
267- yarn-custom-url : ' https://example.com/yarn-4.9.1/yarn.js#sha224.dummyhash'
268- continue-on-error : true # The URL is dummy, so this is just to exercise the code path
269- - name : Ensure custom Yarn logic was attempted
270- run : |
271- grep 'Preparing and activating custom Yarn from URL' $GITHUB_STEP_SUMMARY || exit 1
272-
273- test-yarn-install-max-retries :
274- name : Test yarn-install-max-retries
275- runs-on : ubuntu-latest
276- steps :
277- - uses : actions/checkout@v4
278- - name : Checkout and setup environment with custom max retries
279- id : checkout-and-setup
280- uses : ./
281- with :
282- is-high-risk-environment : false
283- yarn-install-max-retries : ' 2'
284- continue-on-error : true # The install will fail if no yarn.lock, but we want to check retry logic
285- - name : Check retry count in logs
286- run : |
287- grep -c 'yarn --immutable' $GITHUB_STEP_SUMMARY | grep 2 || exit 1
You can’t perform that action at this time.
0 commit comments