Skip to content

Commit

Permalink
workflow update to support more PHP & Laravel version (#9)
Browse files Browse the repository at this point in the history
* Comply with anik/amqp:^2.2

* workflow update: checkout->@V3, PHP 8.2, Laravel 10

* excludes PHP 8.2 for Laravel {6,7}

* orchestra testbench updated for L10 support
  • Loading branch information
ssi-anik authored Mar 2, 2023
1 parent 3eeb8a4 commit 8759b81
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/standard-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.2

- name: Install PHP code sniffer
run: composer global require squizlabs/php_codesniffer
Expand All @@ -34,13 +34,17 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
laravel: [ 6, 7, 8, 9 ]
php: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 ]
laravel: [ 6, 7, 8, 9, 10 ]
exclude:
- php: 8.1
laravel: 6
- php: 8.2
laravel: 6
- php: 8.1
laravel: 7
- php: 8.2
laravel: 7
- php: 7.2
laravel: 8
- php: 7.2
Expand All @@ -49,10 +53,18 @@ jobs:
laravel: 9
- php: 7.4
laravel: 9
- php: 7.2
laravel: 10
- php: 7.3
laravel: 10
- php: 7.4
laravel: 10
- php: 8.0
laravel: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -73,13 +85,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: pcov
php-version: 8.0
php-version: 8.2

- name: Install dependencies
run: composer install --no-interaction --prefer-dist
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0"
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 8759b81

Please sign in to comment.