Skip to content

Commit

Permalink
Use the existing news bundle when installing the core bundle in the "…
Browse files Browse the repository at this point in the history
…depcheck" job
  • Loading branch information
leofeyer committed Jun 25, 2024
1 parent ade8393 commit 0c2b171
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,16 @@ jobs:
run: vendor-bin/depcheck/vendor/bin/composer-dependency-analyser --config=depcheck.php

- name: Install the core bundle
uses: ramsey/composer-install@v3
with:
working-directory: core-bundle
run: |
cd core-bundle
php -r '
$data = json_decode(file_get_contents(__DIR__."/composer.json"), true);
$data["repositories"][1]["type"] = "path";
$data["repositories"][1]["url"] = "../news-bundle";
file_put_contents(__DIR__."/composer.json", json_encode($data, JSON_UNESCAPED_SLASHES));
'
composer install --no-interaction --no-progress
cd ..
- name: Check for unknown symbols (contao/core-bundle)
run: vendor-bin/depcheck/vendor/bin/composer-dependency-analyser --config=depcheck.php --composer-json=core-bundle/composer.json
Expand Down

0 comments on commit 0c2b171

Please sign in to comment.