Skip to content

Commit

Permalink
[#123] Added CI jobs for PHP 8.3 and retired CI jobs for PHP 8.1. (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 authored Apr 24, 2024
1 parent b0d64d1 commit df2164a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 34 deletions.
37 changes: 17 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,40 +76,39 @@ 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: 9.5
DRUPAL_PROJECT_SHA: 9.x
DRUPAL_VERSION: 10@beta
<<: *job-test

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

test-php-8.3-next:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 10@beta
<<: *job-test
Expand All @@ -134,31 +133,29 @@ 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-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
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,11 @@ 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
drupal-version: 9.5
drupal-project-sha: 9.x
drupal-version-alias: legacy

- name: test-php-8.2-legacy
php-version: 8.2
drupal-version: 9.5
Expand All @@ -41,6 +31,16 @@ jobs:
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-next
php-version: 8.3
drupal-version: 10@beta
drupal-version-alias: next

name: ${{ matrix.name }}

env:
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 @@ -16,7 +16,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 df2164a

Please sign in to comment.