From bf2bc02edb77d3a389ada8faf3b9f560f72826b4 Mon Sep 17 00:00:00 2001 From: Bart van Amelsvoort Date: Fri, 24 May 2024 08:10:52 +0200 Subject: [PATCH] Modify pr-check, also run it on lowest dependency versions --- .github/workflows/pull-request-checks.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request-checks.yaml b/.github/workflows/pull-request-checks.yaml index e2a7dbf..c35e224 100644 --- a/.github/workflows/pull-request-checks.yaml +++ b/.github/workflows/pull-request-checks.yaml @@ -8,10 +8,14 @@ jobs: strategy: matrix: php: ['7.4'] + composer-options: + - --prefer-dist --no-progress --no-interaction + - --prefer-dist --no-progress --no-interaction --prefer-lowest + steps: # Checkout & installation - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -20,11 +24,12 @@ jobs: ini-values: "memory_limit=-1" php-version: "${{ matrix.php }}" - - name: Composer install - run: composer update --prefer-dist --no-progress --no-suggest --no-interaction --prefer-lowest + # Install project + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-interaction - - name: PHPCS Fixer install - run: composer bin php-cs-fixer update + - name: Composer update + run: composer update ${{ matrix.composer-options }} # Linters - name: Run Composer linter