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

Commit

Permalink
Support for PHP 8.1 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Dec 19, 2021
1 parent a4080c6 commit 152575e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 39 deletions.
58 changes: 27 additions & 31 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,36 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 7.4]
laravel: [8.*, 7.*, 6.*]
php: [8.1, 8.0, 7.4]
laravel: [8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- laravel: 8.*
testbench: 6.*

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

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

- name: Cache dependencies
uses: actions/cache@v2
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: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
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: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

## 1.3.0 - 2021-12-19

- Support for PHP 8.1
- Dropped support for Larvael 6 and 7

## 1.2.1 - 2021-01-14

- Fix for GA v4

## 1.2.0 - 2020-10-31

- Support for PHP 8.0

## 1.1.0 - 2020-09-04

- Support for Laravel 8.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Hey! We've built a Docker-based deployment tool to launch apps and sites fully c
* Full access to the [underlying library](https://github.com/theiconic/php-ga-measurement-protocol).
* API calls to GA are queued.
* Easy to configure.
* Compatible with Laravel 6.0 and higher.
* Compatible with Laravel 8.0.
* PHP 7.4 or higher required.

## Support
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"illuminate/bus": "^6.0 || ^7.0 || ^8.0",
"illuminate/queue": "^6.0 || ^7.0 || ^8.0",
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
"illuminate/validation": "^6.0 || ^7.0 || ^8.0",
"php": "^7.4 || ^8.0 || ^8.1",
"illuminate/bus": "^8.67",
"illuminate/queue": "^8.67",
"illuminate/http": "^8.67",
"illuminate/validation": "^8.67",
"theiconic/php-ga-measurement-protocol": "^2.7"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"orchestra/testbench": "^6.23",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.3 || ^9.0"
"phpunit/phpunit": "^9.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 152575e

Please sign in to comment.