Skip to content

Commit

Permalink
Merge pull request #123 from cloudinary-community/develop
Browse files Browse the repository at this point in the history
Bring up to date with Laravel 11
  • Loading branch information
joshmanders authored Aug 12, 2024
2 parents 47701de + 83f7fbe commit 716acb2
Show file tree
Hide file tree
Showing 24 changed files with 1,229 additions and 8,917 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,43 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: true
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]

name: PHP ${{ matrix.php }}
php: [8.1, 8.2, 8.3]
laravel: [10.*, 11.*]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Testbench ${{ matrix.testbench }}

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

- name: Cache dependencies
uses: actions/cache@v3
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: sqlite, pdo_sqlite
extensions: mbstring, pdo, pdo_sqlite
tools: composer:v2
coverage: none

- name: Install dependencies
# TODO: remove --ignore-platform-reqs when we have stable v2 release
run: composer install --no-interaction --prefer-dist --optimize-autoloader --ignore-platform-reqs
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction --with-all-dependencies
- name: Execute tests
run: vendor/bin/pest
run: vendor/bin/pest --ci
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/.idea/
/.phpunit.cache
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
src/.php_cs.cache
.idea/
Loading

0 comments on commit 716acb2

Please sign in to comment.