Skip to content

Commit

Permalink
Unit tests: Separately test for PHP 8.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Feb 25, 2024
1 parent da668f6 commit bbacf60
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/php8.3.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
4 changes: 0 additions & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,4 @@
<property name="is_theme" value="true" />
</properties>
</rule>

<!-- Include sniffs for PHP cross-version compatibility. -->
<config name="testVersion" value="8.3-"/>
<rule ref="PHPCompatibility"/>
</ruleset>

0 comments on commit bbacf60

Please sign in to comment.