diff --git a/.github/workflows/php8.3.yml b/.github/workflows/php8.3.yml new file mode 100644 index 00000000..a09b8762 --- /dev/null +++ b/.github/workflows/php8.3.yml @@ -0,0 +1,41 @@ +# @Author: Roni Laukkarinen +# @Date: 2023-02-15 17:39:37 +# @Last Modified by: Roni Laukkarinen +# @Last Modified time: 2024-02-14 17:15:37 +name: PHP + +on: [push, pull_request] + +env: + PHPCS_DIR: /tmp/phpcs + PHPCOMPAT_DIR: /tmp/phpcompatibility + SNIFFS_DIR: /tmp/sniffs + WPCS_DIR: /tmp/wpcs + +jobs: + build: + name: Test for PHP 8.3 support + runs-on: ubuntu-20.04 + + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + + - name: Setup PHP with Xdebug 2.x + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + coverage: xdebug2 + + - name: Set up PHPCS and WordPress-Coding-Standards + uses: php-actions/composer@v6 + env: + COMPOSER: "composer.json" + with: + php_version: "8.3" + version: "2.3.7" + args: "--ignore-platform-reqs --optimize-autoloader" + + - name: Run PHP_CodeSniffer + run: | + vendor/bin/phpcs -p . --extensions=php --ignore=vendor,node_modules,src,js,css,sass --runtime-set testVersion 8.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 80d6cd8e..8bdcd1d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * Add unit tests for PHPCompatibility * Upgrade PHP version in use to PHP 8.3 * Require PHP 8.3 +* Unit tests: Separately test for PHP 8.3 support ### 9.3.6: 2024-01-10 diff --git a/README.md b/README.md index d85a0bd5..a059e239 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Air-light - A minimalist WordPress starter theme -[![GitHub release](https://img.shields.io/github/tag/digitoimistodude/air-light.svg?style=flat-square)](https://github.com/digitoimistodude/air-light/releases) ![GitHub contributors](https://img.shields.io/github/contributors/digitoimistodude/air-light.svg?style=flat-square) [![Build Status for HTML](https://github.com/digitoimistodude/air-light/actions/workflows/html.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/html.yml) [![Build Status for JS](https://github.com/digitoimistodude/air-light/actions/workflows/js.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/js.yml) [![Build Status for CSS](https://github.com/digitoimistodude/air-light/actions/workflows/styles.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/styles.yml) [![Build Status for PHP](https://github.com/digitoimistodude/air-light/actions/workflows/php.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/php.yml) +[![GitHub release](https://img.shields.io/github/tag/digitoimistodude/air-light.svg?style=flat-square)](https://github.com/digitoimistodude/air-light/releases) ![GitHub contributors](https://img.shields.io/github/contributors/digitoimistodude/air-light.svg?style=flat-square) [![Build Status for PHP 8.3](https://github.com/digitoimistodude/air-light/actions/workflows/php.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/php8.3.yml) [![Build Status for HTML](https://github.com/digitoimistodude/air-light/actions/workflows/html.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/html.yml) [![Build Status for JS](https://github.com/digitoimistodude/air-light/actions/workflows/js.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/js.yml) [![Build Status for CSS](https://github.com/digitoimistodude/air-light/actions/workflows/styles.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/styles.yml) [![Build Status for PHP](https://github.com/digitoimistodude/air-light/actions/workflows/php.yml/badge.svg)](https://github.com/digitoimistodude/air-light/actions/workflows/php.yml) Air-light (or simply *Air*) is designed to be an ultra minimal starting point for a WordPress project at [Digitoimisto Dude Oy](https://www.dude.fi), a Finnish boutique digital agency in the center of Jyväskylä. Theme is originally based on [\_s](https://github.com/automattic/_s). We welcome all happy contributors with open arms! [See roadmap](https://favro.com/organization/3b45e73eaf083f68fefef368/c1dd2d4a99d6723904d2e763). diff --git a/phpcs.xml b/phpcs.xml index 734bea52..3ee69c68 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -126,8 +126,4 @@ - - - -