diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b120575..14d383f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -12,12 +12,12 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.1", "8.2", "8.3"] + php-versions: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.1", "8.2", "8.3", "8.4", "8.5"] coverage: [false] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -31,6 +31,10 @@ jobs: - name: Setup problem matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Remove coverage package for non-target configs + run: composer remove --dev php-coveralls/php-coveralls + if: ${{ !matrix.coverage }} + - name: Validate composer run: composer validate @@ -39,7 +43,7 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v3 + uses: actions/cache@v6 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}