Skip to content

Commit 3c621ff

Browse files
authored
Merge pull request #86 from Yoast/develop
Release version 1.0.4
2 parents 5ea3536 + 36a38f4 commit 3c621ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+268
-163
lines changed

.github/dependabot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Dependabot configuration.
2+
#
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for GitHub Actions.
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 5
14+
commit-message:
15+
prefix: "GH Actions:"
16+
labels:
17+
- "Type: chores/QA"
18+
19+
# Maintain dependencies for Composer.
20+
- package-ecosystem: "composer"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
open-pull-requests-limit: 5 # Set to 0 to (temporarily) disable.
25+
versioning-strategy: widen
26+
commit-message:
27+
prefix: "Composer:"
28+
labels:
29+
- "Type: chores/QA"

.github/workflows/cs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

2525
- name: Install PHP
2626
uses: shivammathur/setup-php@v2
@@ -32,7 +32,10 @@ jobs:
3232
# Install dependencies and handle caching in one go.
3333
# @link https://github.com/marketplace/actions/install-composer-dependencies
3434
- name: Install Composer dependencies
35-
uses: "ramsey/composer-install@v1"
35+
uses: "ramsey/composer-install@v2"
36+
with:
37+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
38+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
3639

3740
# Validate the composer.json file.
3841
# @link https://getcomposer.org/doc/03-cli.md#validate
@@ -41,8 +44,9 @@ jobs:
4144

4245
# Check the code-style consistency of the PHP files.
4346
- name: Check PHP code style
44-
continue-on-error: true
47+
id: phpcs
4548
run: composer check-cs -- --report-full --report-checkstyle=./phpcs-report.xml
4649

4750
- name: Show PHPCS results in PR
51+
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
4852
run: cs2pr ./phpcs-report.xml

.github/workflows/lint.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ jobs:
2424

2525
name: "Lint: PHP ${{ matrix.php }}"
2626

27-
continue-on-error: ${{ matrix.php == '8.2' }}
28-
2927
steps:
3028
- name: Checkout code
31-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3230

3331
- name: Install PHP
3432
uses: shivammathur/setup-php@v2
@@ -38,12 +36,15 @@ jobs:
3836
coverage: none
3937

4038
- name: 'Composer: remove PHPUnit (not needed for lint)'
41-
run: composer remove phpunit/phpunit --no-update
39+
run: composer remove phpunit/phpunit --no-update --no-interaction
4240

4341
# Install dependencies and handle caching in one go.
4442
# @link https://github.com/marketplace/actions/install-composer-dependencies
4543
- name: Install Composer dependencies
46-
uses: "ramsey/composer-install@v1"
44+
uses: "ramsey/composer-install@v2"
45+
with:
46+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
47+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
4748

4849
- name: "Lint PHP files against parse errors - PHP < 7.0"
4950
if: ${{ matrix.php < 7.0 }}

.github/workflows/test.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
23+
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
2424
phpunit: ['auto']
2525
experimental: [false]
2626

@@ -55,13 +55,16 @@ jobs:
5555
- php: '8.0'
5656
phpunit: '9.3.0'
5757
experimental: false
58+
- php: '8.1'
59+
phpunit: '9.3.0'
60+
experimental: false
5861

5962
# Experimental builds.
60-
- php: '8.2'
61-
phpunit: 'auto'
63+
- php: '8.1'
64+
phpunit: '^10.0'
6265
experimental: true
6366

64-
- php: '8.0'
67+
- php: '8.2'
6568
phpunit: '^10.0'
6669
experimental: true
6770

@@ -71,7 +74,7 @@ jobs:
7174

7275
steps:
7376
- name: Checkout code
74-
uses: actions/checkout@v2
77+
uses: actions/checkout@v3
7578

7679
- name: Install PHP
7780
uses: shivammathur/setup-php@v2
@@ -82,20 +85,15 @@ jobs:
8285

8386
- name: 'Composer: set PHPUnit version for tests'
8487
if: ${{ matrix.phpunit != 'auto' }}
85-
run: composer require --no-update phpunit/phpunit:"${{ matrix.phpunit }}"
88+
run: composer require --no-update phpunit/phpunit:"${{ matrix.phpunit }}" --no-interaction
8689

8790
# Install dependencies and handle caching in one go.
8891
# @link https://github.com/marketplace/actions/install-composer-dependencies
89-
- name: Install Composer dependencies for PHP < 8.2
90-
if: ${{ matrix.php < 8.2 }}
91-
uses: "ramsey/composer-install@v1"
92-
93-
# For PHP 8.2 and above, we need to install with ignore platform reqs as not all dependencies allow it yet.
94-
- name: Install Composer dependencies for PHP >= 8.2
95-
if: ${{ matrix.php >= 8.2 }}
96-
uses: "ramsey/composer-install@v1"
92+
- name: Install Composer dependencies
93+
uses: "ramsey/composer-install@v2"
9794
with:
98-
composer-options: --ignore-platform-reqs
95+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
96+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
9997

10098
- name: Run the unit tests
10199
if: ${{ matrix.phpunit != '^10.0' }}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ This projects adheres to [Keep a CHANGELOG](http://keepachangelog.com/) and uses
99

1010
_Nothing yet._
1111

12+
## [1.0.4] - 2022-11-16
13+
14+
This is a maintenance release.
15+
16+
### Changed
17+
* The `Yoast\PHPUnitPolyfills\Autoload` class is now `final`. PR [#77].
18+
* README: clear up minor language confusion. Props [Phil E. Taylor] and [fredericgboutin-yapla] for pointing it out.
19+
* README: fix links which were broken due to an upstream branch rename. PR [#80].
20+
* Verified PHP 8.2 compatibility.
21+
* General housekeeping.
22+
23+
[#77]: https://github.com/Yoast/PHPUnit-Polyfills/pull/77
24+
[#80]: https://github.com/Yoast/PHPUnit-Polyfills/pull/80
25+
26+
1227
## [1.0.3] - 2021-11-23
1328

1429
### Changed
@@ -111,6 +126,7 @@ Initial release.
111126

112127

113128
[Unreleased]: https://github.com/Yoast/PHPUnit-Polyfills/compare/main...HEAD
129+
[1.0.4]: https://github.com/Yoast/PHPUnit-Polyfills/compare/1.0.3...1.0.4
114130
[1.0.3]: https://github.com/Yoast/PHPUnit-Polyfills/compare/1.0.2...1.0.3
115131
[1.0.2]: https://github.com/Yoast/PHPUnit-Polyfills/compare/1.0.1...1.0.2
116132
[1.0.1]: https://github.com/Yoast/PHPUnit-Polyfills/compare/1.0.0...1.0.1
@@ -119,8 +135,10 @@ Initial release.
119135
[0.1.0]: https://github.com/Yoast/PHPUnit-Polyfills/compare/e8f8b7a73737aa9a5974bd9c73d2bd8d09f69873...0.1.0
120136

121137
[Alain Schlesser]: https://github.com/schlessera
138+
[fredericgboutin-yapla]: https://github.com/fredericgboutin-yapla
122139
[Gary Jones]: https://github.com/GaryJones
123140
[Marc Siegrist]: https://github.com/mergeMarc
124141
[Mark Baker]: https://github.com/MarkBaker
125142
[Pascal Birchler]: https://github.com/swissspidy
143+
[Phil E. Taylor]: https://github.com/PhilETaylor
126144
[Pierre Gordon]: https://github.com/pierlon

0 commit comments

Comments
 (0)