Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 68a45e3

Browse files
Merge pull request #7 from enflow/laravel11
Upgrade for Laravel 11
2 parents fb5feec + 9c148c9 commit 68a45e3

File tree

3 files changed

+47
-50
lines changed

3 files changed

+47
-50
lines changed

.github/workflows/run-tests.yml

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,47 @@
11
name: run-tests
22

33
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
4+
push:
5+
pull_request:
86

97
jobs:
10-
test:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
fail-fast: true
14-
matrix:
15-
os: [ubuntu-latest]
16-
php: [8.2]
17-
laravel: [10.*]
18-
stability: [prefer-lowest, prefer-stable]
19-
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24-
25-
steps:
26-
- name: Checkout code
27-
uses: actions/checkout@v4
28-
29-
- name: Setup PHP
30-
uses: shivammathur/setup-php@v2
31-
with:
32-
php-version: ${{ matrix.php }}
33-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
34-
coverage: none
35-
36-
- name: Setup problem matchers
37-
run: |
38-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
39-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
40-
41-
- name: Install dependencies
42-
run: |
43-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45-
46-
- name: List Installed Dependencies
47-
run: composer show -D
48-
49-
- name: Execute tests
50-
run: composer test
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
os: [ubuntu-latest]
14+
php: [ 8.3, 8.2 ]
15+
laravel: [ '10.*', '11.*' ]
16+
stability: [prefer-lowest, prefer-stable]
17+
include:
18+
- laravel: 11.*
19+
testbench: 9.*
20+
- laravel: 10.*
21+
testbench: 8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
34+
coverage: none
35+
36+
- name: Setup problem matchers
37+
run: |
38+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
39+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
40+
41+
- name: Install dependencies
42+
run: |
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45+
46+
- name: Execute tests
47+
run: vendor/bin/phpunit

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
],
1717
"require": {
1818
"php": "^8.2",
19-
"laravel/framework": "^10.13",
20-
"spatie/laravel-package-tools": "^1.15",
2119
"google/apiclient": "^2.13",
22-
"maatwebsite/excel": "^3.1"
20+
"laravel/framework": "^10.0|^11.0",
21+
"maatwebsite/excel": "^3.1",
22+
"spatie/laravel-package-tools": "^1.15"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.0",
26-
"phpunit/phpunit": "^10.0"
26+
"phpunit/phpunit": "^10.5|^11.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

src/LaravelExcelToGoogleSheetServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function bootingPackage(): void
3131
$this->app->bind(GoogleSheetPusher::class, fn () => new GoogleSheetPusher($this->app->make(GoogleSheetService::class)));
3232
}
3333

34-
protected function guardAgainstInvalidConfiguration(array $config = null): void
34+
protected function guardAgainstInvalidConfiguration(?array $config = null): void
3535
{
3636
if (is_array($config['service_account_credentials_json'])) {
3737
return;

0 commit comments

Comments
 (0)