Skip to content

Commit

Permalink
Merge pull request #46 from fr3nch13/2.x-dev
Browse files Browse the repository at this point in the history
Update to CI workflow, add wait-for-it script.
  • Loading branch information
fr3nch13 committed Feb 10, 2023
2 parents c012b70 + fd2fe44 commit e51b354
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
name: Test PHP ${{ matrix.php-version }}
php-version: ['7.4', '8.0', '8.1', '8.2', 'latest']
name: Test - PHP - ${{ matrix.php-version }}

steps:
- uses: actions/checkout@v3
Expand All @@ -35,15 +35,19 @@ jobs:

coverage-php:
runs-on: ubuntu-22.04
name: Coverage
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2', 'latest']
name: Coverage - PHP - ${{ matrix.php-version }}

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: pcov

Expand All @@ -61,16 +65,20 @@ jobs:
verbose: true

coding-standard:
name: Coding Standard
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2', 'latest']
name: Coding Standard - PHP - ${{ matrix.php-version }}

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: none

Expand All @@ -85,8 +93,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
name: Static Analysis - PHP ${{ matrix.php-version }}
php-version: ['7.4', '8.0', '8.1', '8.2', 'latest']
name: Static Analysis - PHP - ${{ matrix.php-version }}

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"staabm/annotate-pull-request-from-checkstyle": "^1.8"
"staabm/annotate-pull-request-from-checkstyle": "^1.8",
"vishnubob/wait-for-it": "dev-master"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit e51b354

Please sign in to comment.