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

Commit 152575e

Browse files
authored
Support for PHP 8.1 (#6)
1 parent a4080c6 commit 152575e

File tree

4 files changed

+48
-39
lines changed

4 files changed

+48
-39
lines changed

.github/workflows/run-tests.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,36 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4]
12-
laravel: [8.*, 7.*, 6.*]
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [8.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:
15-
- laravel: 8.*
16-
testbench: 6.*
17-
- laravel: 7.*
18-
testbench: 5.*
19-
- laravel: 6.*
20-
testbench: 4.*
15+
- laravel: 8.*
16+
testbench: 6.*
2117

2218
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2319

2420
steps:
25-
- name: Checkout code
26-
uses: actions/checkout@v2
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v2
30-
with:
31-
path: ~/.composer/cache/files
32-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
33-
34-
- name: Setup PHP
35-
uses: shivammathur/setup-php@v2
36-
with:
37-
php-version: ${{ matrix.php }}
38-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
39-
coverage: none
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.dependency-version }} --prefer-dist --no-interaction --no-suggest
45-
46-
- name: Execute tests
47-
run: vendor/bin/phpunit
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

CHANGELOG.md

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

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

5+
## 1.3.0 - 2021-12-19
6+
7+
- Support for PHP 8.1
8+
- Dropped support for Larvael 6 and 7
9+
10+
## 1.2.1 - 2021-01-14
11+
12+
- Fix for GA v4
13+
14+
## 1.2.0 - 2020-10-31
15+
16+
- Support for PHP 8.0
17+
518
## 1.1.0 - 2020-09-04
619

720
- Support for Laravel 8.0

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 6.0 and higher.
22+
* Compatible with Laravel 8.0.
2323
* PHP 7.4 or higher required.
2424

2525
## Support

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.4 || ^8.0",
25-
"illuminate/bus": "^6.0 || ^7.0 || ^8.0",
26-
"illuminate/queue": "^6.0 || ^7.0 || ^8.0",
27-
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
28-
"illuminate/validation": "^6.0 || ^7.0 || ^8.0",
24+
"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",
2929
"theiconic/php-ga-measurement-protocol": "^2.7"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
32+
"orchestra/testbench": "^6.23",
3333
"mockery/mockery": "^1.3.3",
34-
"phpunit/phpunit": "^8.3 || ^9.0"
34+
"phpunit/phpunit": "^9.4"
3535
},
3636
"autoload": {
3737
"psr-4": {

0 commit comments

Comments
 (0)