Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 901a37f

Browse files
authored
Support for Laravel 9 (#7)
1 parent 8ab8a92 commit 901a37f

File tree

4 files changed

+53
-44
lines changed

4 files changed

+53
-44
lines changed

.github/workflows/run-tests.yml

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,46 @@ name: run-tests
33
on: [push, pull_request]
44

55
jobs:
6-
test:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: true
10-
matrix:
11-
php: [8.1, 8.0, 7.4]
12-
laravel: [8.*]
13-
dependency-version: [prefer-lowest, prefer-stable]
14-
include:
15-
- laravel: 8.*
16-
testbench: 6.*
17-
18-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
19-
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v2
23-
24-
- name: Cache dependencies
25-
uses: actions/cache@v2
26-
with:
27-
path: ~/.composer/cache/files
28-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
35-
coverage: none
36-
37-
- name: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41-
42-
- name: Execute tests
43-
run: vendor/bin/phpunit
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [9.*, 8.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
exclude:
15+
- laravel: 9.*
16+
php: 7.4
17+
include:
18+
- laravel: 9.*
19+
testbench: 7.*
20+
- laravel: 8.*
21+
testbench: 6.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.composer/cache/files
33+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
47+
- name: Execute tests
48+
run: vendor/bin/phpunit

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-analytics-event-tracking` will be documented in this file
44

5+
## 1.4.0 - 2022-02-04
6+
7+
- Support for Laravel 9
8+
59
## 1.3.0 - 2021-12-19
610

711
- Support for PHP 8.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Hey! We've built a Docker-based deployment tool to launch apps and sites fully c
1919
* Full access to the [underlying library](https://github.com/theiconic/php-ga-measurement-protocol).
2020
* API calls to GA are queued.
2121
* Easy to configure.
22-
* Compatible with Laravel 8.0.
22+
* Compatible with Laravel 8.0 and 9.0.
2323
* PHP 7.4 or higher required.
2424

2525
## Support

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
],
2323
"require": {
2424
"php": "^7.4 || ^8.0 || ^8.1",
25-
"illuminate/bus": "^8.67",
26-
"illuminate/queue": "^8.67",
27-
"illuminate/http": "^8.67",
28-
"illuminate/validation": "^8.67",
25+
"illuminate/bus": "^8.67 || ^9.0",
26+
"illuminate/queue": "^8.67 || ^9.0",
27+
"illuminate/http": "^8.67 || ^9.0",
28+
"illuminate/validation": "^8.67 || ^9.0",
2929
"theiconic/php-ga-measurement-protocol": "^2.7"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^6.23",
32+
"orchestra/testbench": "^6.23 || ^7.0",
3333
"mockery/mockery": "^1.3.3",
3434
"phpunit/phpunit": "^9.4"
3535
},

0 commit comments

Comments
 (0)