From f5c57a61796d0789dc1992b7b36e2c51b52da5f6 Mon Sep 17 00:00:00 2001 From: Jan Langer Date: Mon, 4 Mar 2024 10:27:42 +0100 Subject: [PATCH] Test on PHP 8.3 --- .github/workflows/build.yml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41c0d55..41e0796 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,11 @@ jobs: php-version: - "8.1" - "8.2" + - "8.3" steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -32,7 +33,7 @@ jobs: tools: composer:v2 - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: "~/.composer/cache" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" @@ -51,21 +52,21 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: coverage: "none" - php-version: "8.1" + php-version: "8.3" tools: composer:v2 - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: "~/.composer/cache" - key: "php-8.1-composer-${{ hashFiles('**/composer.json') }}" - restore-keys: "php-8.1-composer-" + key: "php-8.3-composer-${{ hashFiles('**/composer.json') }}" + restore-keys: "php-8.3-composer-" - name: "Install dependencies" run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest" @@ -86,10 +87,11 @@ jobs: php-version: - "8.1" - "8.2" + - "8.3" steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -99,7 +101,7 @@ jobs: tools: composer:v2 - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: "~/.composer/cache" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" @@ -122,12 +124,13 @@ jobs: php-version: - "8.1" - "8.2" + - "8.3" operating-system: ["ubuntu-latest", "windows-latest"] steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -137,7 +140,7 @@ jobs: extensions: mbstring - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: "~/.composer/cache" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" @@ -161,21 +164,23 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" + with: + fetch-depth: 5 - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: coverage: "pcov" - php-version: "8.1" + php-version: "8.3" tools: pecl - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: "~/.composer/cache" - key: "php-8.1-composer-${{ hashFiles('**/composer.json') }}" - restore-keys: "php-8.1-composer-" + key: "php-8.3-composer-${{ hashFiles('**/composer.json') }}" + restore-keys: "php-8.3-composer-" - name: "Install dependencies" run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"