Skip to content

Commit

Permalink
Test on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Mar 4, 2024
1 parent b40c89a commit f5c57a6
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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') }}"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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') }}"
Expand All @@ -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"
Expand All @@ -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') }}"
Expand All @@ -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"
Expand Down

0 comments on commit f5c57a6

Please sign in to comment.