From ba897a1994951c6e81d22b2e86fb25af7e7d0bbd Mon Sep 17 00:00:00 2001 From: alexpozzi Date: Wed, 16 Oct 2024 17:39:47 +0200 Subject: [PATCH] fix: tests pipeline --- .github/workflows/build.yaml | 14 +++++++------- .github/workflows/tests.yaml | 9 ++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b696ac2c..a0185f2d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: uses: shivammathur/setup-php@v2 - name: Validate composer.json run: | - (cd src/Bundle && composer validate --strict --no-check-lock) + (cd src/Framework/Symfony && composer validate --strict --no-check-lock) tests: runs-on: ubuntu-20.04 strategy: @@ -50,16 +50,16 @@ jobs: with: php-version: ${{ matrix.php }} - run: | - sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' src/Bundle/composer.json; + sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' src/Framework/Symfony/composer.json; if: matrix.symfony - run: | composer config minimum-stability dev composer config prefer-stable true if: matrix.beta - run: | - (cd src/Bundle && composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}) + (cd src/Framework/Symfony && composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}) - run: | - (cd src/Bundle && vendor/bin/phpunit) + (cd src/Framework/Symfony && vendor/bin/phpunit) tests-windows: runs-on: windows-2022 strategy: @@ -95,13 +95,13 @@ jobs: with: php-version: ${{ matrix.php }} - run: | - (Get-Content composer.json) -replace '("symfony/[^"]+": )"[^"]+"', '$1"${{ matrix.symfony }}"' | Out-File -encoding ASCII src/Bundle/composer.json + (Get-Content composer.json) -replace '("symfony/[^"]+": )"[^"]+"', '$1"${{ matrix.symfony }}"' | Out-File -encoding ASCII src/Framework/Symfony/composer.json if: matrix.symfony - run: | composer config minimum-stability dev composer config prefer-stable true if: matrix.beta - run: | - {cd src/Bundle && composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}} + {cd src/Framework/Symfony && composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}} - run: | - {cd src/Bundle && vendor/bin/phpunit} + {cd src/Framework/Symfony && vendor/bin/phpunit} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 33956051..1fe19627 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -46,17 +46,16 @@ jobs: - knplabs/snappy path: - ./ - # include: ${{ fromJson(needs.packages.outputs.packages) }} + include: ${{ fromJson(needs.packages.outputs.packages) }} defaults: run: working-directory: ${{ matrix.path }} steps: - uses: actions/checkout@v4 - with: - sparse-checkout: | - src/Core/ - ${{ matrix.path }} - uses: shivammathur/setup-php@v2 + - name: composer patch + run: | + cat <<< $(jq '.+{repositories: [{url: "path", url: "src/Core"}]}' < composer.json) > composer.json - name: composer install run: | composer install