Skip to content

Commit

Permalink
Try to install deps without bind-mount (#8)
Browse files Browse the repository at this point in the history
* Try to install deps without bind-mount

* Remove vendor folder to test if there are any conflicts

* Try to install `unzip` / `zip`

* Revert "Try to install deps without bind-mount"

This reverts commit 6b17bb1.

* Install `symfony/*` from dist

* Try to install deps without bind-mount - 2

* Remove `unzip` / `zip`

* Revert "Remove `unzip` / `zip`"

This reverts commit 6a4373a.

* Try to not use volumes for CI

* Use `!override`

* Try `!reset`

* Check without `unzip` / `zip`
  • Loading branch information
maks-rafalko committed Jun 2, 2024
1 parent 89d5d3f commit 089436e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ jobs:
load: true
files: |
docker-compose.yml
docker-compose.ci.yml
set: |
*.cache-from=type=gha,scope=${{github.ref}}
*.cache-from=type=gha,scope=refs/heads/master
*.cache-to=type=gha,scope=${{github.ref}},mode=max
- name: Start services
run: docker compose up -d
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d

- name: Install dependencies
run: docker compose exec -T php composer install
Expand Down
3 changes: 1 addition & 2 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"phpstan/extension-installer": true
},
"preferred-install": {
"phpstan/phpstan": "dist",
"symfony/*": "source"
"phpstan/phpstan": "dist"
},
"sort-packages": true
},
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.9"

services:
php:
volumes: !reset []

0 comments on commit 089436e

Please sign in to comment.