Skip to content

Commit

Permalink
Added PHP 8.1 support for CI (#155)
Browse files Browse the repository at this point in the history
* Added PHP 8.1 support to CI

* Not running PHP-CS-Fixer on PHP 8.1

* Only split subtrees for PHP 8.0
  • Loading branch information
davidbyoung committed Sep 13, 2021
1 parent 7d75b36 commit d067378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.0']
php: ['8.0', '8.1']
stability: [prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
Expand All @@ -31,6 +31,7 @@ jobs:
run: composer phpunit
- name: Run Linter
run: composer phpcs-test
if: matrix.php != '8.1'
- name: Run Psalm Static Analysis
run: composer psalm -- --shepherd
- name: Upload Coverage Results To Coveralls
Expand All @@ -40,7 +41,7 @@ jobs:
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=./.coverage/clover.xml --json_path=./coveralls-upload.json -v
- name: Split Subtrees
if: github.ref == 'refs/heads/1.x' || startswith(github.ref, 'refs/tags/')
if: matrix.php == '8.0' && (github.ref == 'refs/heads/1.x' || startswith(github.ref, 'refs/tags/'))
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
Expand Down

0 comments on commit d067378

Please sign in to comment.