Skip to content

Commit

Permalink
Issue danielstjules#209 - PHP 8.1 compatibility - Add GitHub Actions …
Browse files Browse the repository at this point in the history
…workflows/qa.xml
  • Loading branch information
Sweetchuck committed Jan 9, 2022
1 parent 7f513f8 commit 95a556d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
51 changes: 51 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
##
# @link https://github.com/shivammathur/setup-php
##

'on':
push:
branches:
- '3.x'
pull_request:
branches:
- '3.x'

jobs:
run:
strategy:
matrix:
operating-system:
- 'ubuntu-latest'
# - 'windows-latest'
# - 'macOS-latest'
php-versions:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
name: 'PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}'
runs-on: '${{ matrix.operating-system }}'
steps:
-
name: 'Checkout'
uses: 'actions/checkout@v2'
-
name: 'Install PHP'
uses: ' @v2'
with:
php-version: '${{ matrix.php-versions }}'
extensions: 'intl, mbstring'
-
name: 'Check PHP Version'
run: 'php -v'
-
name: 'Lint - composer'
run: |
composer validate
-
name: 'Test'
run: |
"$(composer config bin-dir)/phpunit"

0 comments on commit 95a556d

Please sign in to comment.