Skip to content

Commit

Permalink
Add php-8.3, retire php-8.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Apr 24, 2024
1 parent 1dc4718 commit c2c90f0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 31 deletions.
46 changes: 28 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,40 +76,48 @@ job-test: &job-test
path: /tmp/artifacts

jobs:
test-php-8.1:
<<: *container_config
docker:
- image: cimg/php:8.1-browsers
<<: *job-test

test-php-8.2:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
<<: *job-test

test-php-8.1-legacy:
test-php-8.2-legacy:
<<: *container_config
docker:
- image: cimg/php:8.1-browsers
- image: cimg/php:8.2-browsers
environment:
DRUPAL_VERSION: 9.5
DRUPAL_PROJECT_SHA: 9.x
<<: *job-test

test-php-8.2-legacy:
test-php-8.2-next:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
environment:
DRUPAL_VERSION: 10@beta
<<: *job-test

test-php-8.3:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
<<: *job-test

test-php-8.3-legacy:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 9.5
DRUPAL_PROJECT_SHA: 9.x
<<: *job-test

test-php-8.2-next:
test-php-8.3-next:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 10@beta
<<: *job-test
Expand All @@ -134,31 +142,33 @@ workflows:
version: 2
commit:
jobs:
- test-php-8.1:
- test-php-8.2:
filters:
tags:
only: /.*/
- test-php-8.2:
- test-php-8.2-legacy:
filters:
tags:
only: /.*/
- test-php-8.1-legacy:
- test-php-8.2-next:
filters:
tags:
only: /.*/
- test-php-8.2-legacy:
- test-php-8.3:
filters:
tags:
only: /.*/
- test-php-8.2-next:
- test-php-8.3-legacy:
filters:
tags:
only: /.*/
- test-php-8.3-next:
filters:
tags:
only: /.*/
- deploy:
requires:
- test-php-8.1
- test-php-8.2
- test-php-8.1-legacy
- test-php-8.2-legacy
- test-php-8.2-next
filters:
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,35 @@ jobs:
strategy:
matrix:
include:
- name: test-php-8.1
php-version: 8.1
drupal-version: stable

- name: test-php-8.2
php-version: 8.2
drupal-version: stable
drupal-version-alias: stable

- name: test-php-8.1-legacy
php-version: 8.1
- name: test-php-8.2-legacy
php-version: 8.2
drupal-version: 9.5
drupal-project-sha: 9.x
drupal-version-alias: legacy

- name: test-php-8.2-legacy
- name: test-php-8.2-next
php-version: 8.2
drupal-version: 10@beta
drupal-version-alias: next

- name: test-php-8.3
php-version: 8.3
drupal-version: stable
drupal-version-alias: stable

- name: test-php-8.3-legacy
php-version: 8.3
drupal-version: 9.5
drupal-project-sha: 9.x
drupal-version-alias: legacy

- name: test-php-8.2-next
php-version: 8.2
- name: test-php-8.3-next
php-version: 8.3
drupal-version: 10@beta
drupal-version-alias: next

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ to [drupal.org](https://drupal.org).
## Features

- Turnkey CI configuration with artifacts and test results support.
- PHP version matrix for [8.2](https://www.php.net/supported-versions.php)
and [8.1](https://www.php.net/supported-versions.php).
- PHP version matrix for [8.2](https://www.php.net/supported-versions.php).
- Drupal version matrix: `stable`, `next` and `last EOL` version.
- CI providers:
- [GitHub Actions](.github/workflows/test.yml)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": "https://git.drupalcode.org/project/your_extension"
},
"require": {
"php": ">=8.1"
"php": ">=8.2"
},
"require-dev": {
"drupal/pathauto": "~1.0"
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<arg value="sp"/>
<arg name="parallel" value="75"/>
<!-- Lint code against platform version specified in composer.json key "config.platform.php". -->
<config name="testVersion" value="8.1"/>
<config name="testVersion" value="8.2"/>

<!-- Exclude CircleCI config files. -->
<exclude-pattern>circle\.yml</exclude-pattern>
Expand Down

0 comments on commit c2c90f0

Please sign in to comment.