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 b5472e5
Show file tree
Hide file tree
Showing 2 changed files with 60 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
60 changes: 60 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
##
# @link https://github.com/shivammathur/setup-php
##

'on':
push:
branches:
- '3.x'
- '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: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php-versions }}'
extensions: 'intl, mbstring'
-
name: 'Check tools'
run: |
git -v
php -v
php -m
composer --version
-
name: 'composer install'
run: |
composer install
-
name: 'Lint - composer'
run: |
composer validate
-
name: 'Test'
run: |
"$(composer config bin-dir)/phpunit"

0 comments on commit b5472e5

Please sign in to comment.