Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tested on trunk and php 8.2 #114

Merged
merged 6 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .github/workflows/push-test-deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Test

on: [push, pull_request]
name: Test and Release

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:

Expand All @@ -19,12 +27,24 @@ jobs:
strategy:
matrix:
include:
- php: 8.2
wp: trunk
- php: 8.0
wp: trunk
- php: 7.4
wp: trunk
- php: 8.0
wp: 6.2
- php: 7.4
wp: 6.2
- php: 8.0
wp: 6.1
- php: 7.4
wp: 6.1

name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@master
Expand All @@ -39,7 +59,7 @@ jobs:
run: php -v

- name: Cache composer packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
Expand All @@ -63,11 +83,11 @@ jobs:
runs-on: ubuntu-latest
name: PHP lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: 8.2
extensions: mbstring, intl #optional, setup extensions
ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration
coverage: xdebug #optional, setup coverage driver
Expand All @@ -76,7 +96,7 @@ jobs:
run: php -v

- name: Cache composer packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
Expand All @@ -92,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test,lint]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
if: contains(github.ref, 'tags/')
run: |
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Contributors: Toro_Unit, inc2734, ixkaito, keita_kobayashi, strategio
Donate link: https://www.paypal.me/torounit
Tags: permalink, url, link, address, custom post type
Requires at least: 5.2
Tested up to: 5.8
Requires PHP: 5.6
Requires at least: 6.1
Tested up to: 6.3
Requires PHP: 7.4
License: GPLv2 or Later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Stable tag: 3.4.5
Expand All @@ -20,6 +20,8 @@ Edit the permalink of custom post type.
[![Tested up](https://img.shields.io/wordpress/v/custom-post-type-permalinks.svg?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)
[![wp.org rating](https://img.shields.io/wordpress/plugin/r/custom-post-type-permalinks.svg?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)
[![Build Status](https://img.shields.io/github/workflow/status/torounit/custom-post-type-permalinks/Test?style=for-the-badge)](https://github.com/torounit/custom-post-type-permalinks/actions)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/torounit/custom-post-type-permalinks/test-and-release.yml?branch=master&style=for-the-badge)](https://github.com/torounit/custom-post-type-permalinks/actions)

[![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)
<!-- /only:github -->

Expand Down Expand Up @@ -95,6 +97,10 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal

## Changelog

### 3.5.0
* Tested WP 6.1 / 6.2 / 6.3
* Tested PHP 8.0 / 8.2

### 3.4.5
* Update test for WP 5.7

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=5.6"
"php": ">=7.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
Expand Down