Skip to content

Commit 65df334

Browse files
authored
Update ci.yml
- Update `actions/checkout` to the latest version - Add newer PHP versions to the matrix - Add EOL dates as comments to PHP version
1 parent b0f120e commit 65df334

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php-version: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
16+
php-version:
17+
- 7.3 # from 2018-12 to 2020-12 (2021-12)
18+
- 7.4 # from 2019-11 to 2021-11 (2022-11)
19+
- 8.0 # from 2020-11 to 2022-11 (2023-11)
20+
- 8.1 # from 2021-11 to 2023-11 (2025-12)
21+
- 8.2 # from 2022-12 to 2024-12 (2026-12)
22+
- 8.3 # from 2023-11 to 2025-12 (2027-12)
23+
- 8.4 # from 2024-11 to 2026-12 (2028-12)
24+
- 8.5 # from 2025-11 to 2027-12 (2029-12)
25+
26+
# Prevent unsupported versions of PHP to fail the CI run
27+
continue-on-error: ${{ contains(fromJson("[ '7.3', '7.4', '8.0', '8.1', '8.2' ]"), matrix.php-version) == false }}
1728

1829
steps:
1930
- name: Checkout code
20-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
2132

2233
- name: Setup PHP
2334
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)