Skip to content

Commit c0d4f96

Browse files
author
rotimi
committed
Updated github Action
1 parent 658c97d commit c0d4f96

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/php.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
pull_request:
77
branches: [ main ]
88
schedule:
9-
# Also run every Sunday at midnight
10-
- cron: '0 0 * * 0'
9+
# Also run every day at midnight
10+
- cron: '0 0 * * *'
1111

1212
jobs:
1313
build:
@@ -16,32 +16,32 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
php: [8.1, 8.0, 7.4]
19+
php: [8.2, 8.1, 8.0, 7.4]
2020
# prefer-lowest is causing unit tests to fail when php 7.2 is run against PHPunit 7.x,
2121
# PHPUnit 8.x is the latest stable release that supports PHP 7.2 and that runs fine
2222
# dependency-version: [prefer-lowest, prefer-stable]
2323
dependency-version: [prefer-stable]
24-
os: [ubuntu-18.04, ubuntu-20.04]
24+
os: [ubuntu-20.04, ubuntu-22.04]
2525
include:
26-
- os: ubuntu-18.04
27-
php: 7.4
28-
- os: ubuntu-18.04
29-
php: 8.0
3026
- os: ubuntu-20.04
3127
php: 7.4
3228
- os: ubuntu-20.04
3329
php: 8.0
3430
- os: ubuntu-20.04
3531
php: 8.1
32+
- os: ubuntu-22.04
33+
php: 8.1
34+
- os: ubuntu-22.04
35+
php: 8.2
3636
#exclude:
3737
#- os: ubuntu-20.04
38-
#php: 7.3
38+
# php: 7.3
3939

4040
name: PHP-${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
4141

4242
steps:
4343
- name: Checkout code
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@v3
4545

4646
- name: Setup PHP
4747
uses: shivammathur/setup-php@v2
@@ -74,9 +74,13 @@ jobs:
7474
vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
7575
7676
- name: Run Rector
77-
# Run rector for PHP 7.X but not 8.0, rector is currently blowing up with PHP 8.0
78-
# if: matrix.php != '8.0'
77+
# Run rector for PHP 7.3+ but not 8.0
78+
#if: matrix.php == '7.4'
7979
run: vendor/bin/rector process src --dry-run
80+
continue-on-error: true
8081

8182
- name: Run Psalm
83+
# Run psalm for PHP 7.4 & 8.0 but not 7.2 & 7.3, psalm is currently blowing up with PHP 7.2 & 7.3
84+
# if: matrix.php != '7.3'
8285
run: vendor/bin/psalm
86+
continue-on-error: true

0 commit comments

Comments
 (0)