Skip to content

Commit b3452ef

Browse files
authored
ci: retry yarn install on canaries (#1777)
* Retry yarn install on canaries * [Revert] Try out the workflow prior to merge * Revert "[Revert] Try out the workflow prior to merge" This reverts commit 8d1be0e.
1 parent 3e5b93e commit b3452ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/run-and-test-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Ignore monorepo postcss.config.js
3434
run: mv postcss.config.js _postcss.config.js
3535
- name: Install packages
36-
run: yarn install --no-lockfile
36+
run: for n in {1..3}; do yarn install --no-lockfile && break || sleep 5; done
3737
working-directory: ./canary/apps/${{ matrix.path }}
3838
- name: Add Amplify CLI
3939
run: yarn global add @aws-amplify/cli
@@ -57,7 +57,7 @@ jobs:
5757
run: yarn build
5858
working-directory: ./canary/apps/${{ matrix.path }}
5959
- name: Install cypress
60-
run: yarn install
60+
run: for n in {1..3}; do yarn install --no-lockfile && break || sleep 5; done
6161
working-directory: ./canary/e2e
6262
- name: Start ${{ matrix.example }} example
6363
run: yarn start & npx wait-on -c waitOnConfig.json -t 20000 http-get://localhost:3000

0 commit comments

Comments
 (0)