Skip to content

Commit

Permalink
Speedup build (from 10m to 2m) (#5)
Browse files Browse the repository at this point in the history
* Add bug to test CI

* Revert "Add bug to test CI"

This reverts commit eef10fc.

* Download `symfony/flex` by source, others deps by dist

* Download `symfony/runtime` from source

* Verbose mode for composer, download symfony packages from source

* Again try only flex and runtime from source, in `-vvv` mode

* Download from source doctrine-bridge

* Download symfony packages from source

* Remove `-vvv` from `composer install`
  • Loading branch information
maks-rafalko committed Jun 2, 2024
1 parent cca838a commit 6dd7c44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: docker compose up -d

- name: Install dependencies
run: docker compose exec -T php composer install --prefer-install=source
run: docker compose exec -T php composer install

- name: Install application and DB
run: docker compose exec -T php make app-reinstall
Expand Down
4 changes: 4 additions & 0 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"symfony/runtime": true,
"phpstan/extension-installer": true
},
"preferred-install": {
"phpstan/phpstan": "dist",
"symfony/*": "source"
},
"sort-packages": true
},
"autoload": {
Expand Down

0 comments on commit 6dd7c44

Please sign in to comment.