Skip to content

Commit

Permalink
Add support for laravel 11 (#256)
Browse files Browse the repository at this point in the history
* Run tests without docker

* wip

* wip

* wip

* wip

* wip

* Fix tests

* wip

* wip

* Fix tests

* wip

* wip

* wip
  • Loading branch information
mateusjunges authored Feb 17, 2024
1 parent fd47668 commit 54019c6
Show file tree
Hide file tree
Showing 20 changed files with 177 additions and 876 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/run-tests-9.yml

This file was deleted.

49 changes: 34 additions & 15 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
name: Continuous Integration

on:
push:
branches: [ v1.13.x ]
pull_request:
branches: [ v1.13.x ]
on: ['push', 'pull_request']

jobs:
run-tests:
runs-on: ubuntu-latest
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
php: ["8.2", "8.1"]
librdkafka: [ v1.8.2]
extrdkafka: [6.0.0]
laravel: [10]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

name: CI - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Testbench ${{ matrix.testbench }} (${{ matrix.dependency-version }})
steps:
- uses: actions/checkout@v2
- name: Test ${{ matrix.php }}-${{ matrix.librdkafka }}-${{ matrix.extrdkafka }}-${{ matrix.laravel }}
run:
make version-test-10-${{ matrix.php }}-${{ matrix.librdkafka }}-${{ matrix.extrdkafka }}-${{ matrix.laravel }}

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, zip, rdkafka
tools: prestissimo
coverage: pcov

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
- name: PHPUnit Testing
run: vendor/bin/phpunit
58 changes: 0 additions & 58 deletions Makefile

This file was deleted.

66 changes: 0 additions & 66 deletions build/composer-files/composer.json-10

This file was deleted.

66 changes: 0 additions & 66 deletions build/composer-files/composer.json-9

This file was deleted.

40 changes: 0 additions & 40 deletions build/laravel-kernels/kernel.php.stub

This file was deleted.

31 changes: 0 additions & 31 deletions build/test/Dockerfile

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"require": {
"php": "^8.1|^8.2",
"ext-rdkafka": "^5.0|^6.0",
"monolog/monolog": "^3.4",
"monolog/monolog": "^2.2|^3.4",
"mateusjunges/avro-serde-php": "^3.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/contracts": "^9.0|^10.0"
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^7.16|^8.0",
"phpunit/phpunit": "^9.5|^10.5",
"orchestra/testbench": "^7.16|^8.0|^9.0",
"predis/predis": "^1.1",
"friendsofphp/php-cs-fixer": "^3.0",
"kwn/php-rdkafka-stubs": "^2.2"
Expand Down
25 changes: 0 additions & 25 deletions dev/Dockerfile

This file was deleted.

Loading

0 comments on commit 54019c6

Please sign in to comment.