Skip to content

Commit cdbd5f7

Browse files
authored
Moved composer update to its own step
1 parent 79ec1ce commit cdbd5f7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,20 @@ jobs:
6969

7070
- name: Install that code using Composer rigged to look in the parent directory
7171
working-directory: rollbar-test-app
72+
continue-on-error: true
7273
run: |
7374
composer config repositories.local '{"type":"path", "url":".."}'
7475
composer require rollbar/rollbar-laravel
75-
composer update psr/log
76+
77+
- name: Try to resolve requirements into an installable set of packages
78+
working-directory: rollbar-test-app
79+
# This adds time, so only run this if the previous step fails.
80+
if: ${{ failure() }}
81+
run: composer update
82+
83+
- name: Setup .env
84+
working-directory: rollbar-test-app
85+
run: |
7686
echo "ROLLBAR_TOKEN=${ROLLBAR_TOKEN}" >> .env
7787
echo "GITHUB_RUN_ID=${GITHUB_RUN_ID}" >> .env
7888
chmod 400 .env

0 commit comments

Comments
 (0)