Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Laravel 11.x Compatibility #82

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 62 additions & 50 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,66 @@
name: run-tests

on: [pull_request]
on:
- pull_request

jobs:
test:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1]
laravel: [9, 10.0]
include:
- laravel: 10.0
testbench: 8.*
- laravel: 9
testbench: 7.*
name: PHP ${{ matrix.php }} - LARAVEL ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Decrypt services-account.json
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$GOOGLE_SERVICES_SECRET" \
--output $GITHUB_WORKSPACE/tests/fixtures/service-account.json $GITHUB_WORKSPACE/tests/fixtures/service-account.json.gpg
env:
GOOGLE_SERVICES_SECRET: ${{ secrets.GOOGLE_SERVICES_SECRET }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/filesystem:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest

- name: Run Unit Tests
run: vendor/bin/phpunit --testsuite Unit

- if: matrix.laravel != '7'
name: Run Feature Tests
run: vendor/bin/phpunit --testsuite Feature
test:
if: "!contains(github.event.commits[0].message, '[skip ci]')"

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, '8.2']
laravel: [9, 10.0, '11']
include:
- laravel: 10.0
testbench: 8.*
- laravel: 9
testbench: 7.*
- laravel: '11.0'
testbench: 9.*
exclude:
- laravel: '11'
php: 8.0
- laravel: '11'
php: 8.1

name: PHP ${{ matrix.php }} - LARAVEL ${{ matrix.laravel }}

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

- name: Decrypt services-account.json
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$GOOGLE_SERVICES_SECRET" \
--output $GITHUB_WORKSPACE/tests/fixtures/service-account.json $GITHUB_WORKSPACE/tests/fixtures/service-account.json.gpg
env:
GOOGLE_SERVICES_SECRET: ${{ secrets.GOOGLE_SERVICES_SECRET }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/filesystem:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest

- name: Run Unit Tests
run: vendor/bin/phpunit --testsuite Unit

- if: "matrix.laravel != '7'"
name: Run Feature Tests
run: vendor/bin/phpunit --testsuite Feature
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
],
"require": {
"google/apiclient": "^2.1",
"illuminate/console": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0",
"illuminate/filesystem": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0",
"illuminate/support": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0"
"illuminate/console": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0|^11.0",
"illuminate/filesystem": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0|^11.0",
"illuminate/support": "~5.8.0|^6.0|^7.0|^8.0|^v9.0|^10.0|^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"orchestra/testbench": "^7.0|^8.0"
"orchestra/testbench": "^7.0|^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading