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

Commit 0601ae1

Browse files
authored
Support for PHP 8.0 (#3)
1 parent 6c75696 commit 0601ae1

File tree

5 files changed

+52
-41
lines changed

5 files changed

+52
-41
lines changed

.github/workflows/run-tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.0, 7.4]
12+
laravel: [8.*, 7.*, 6.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
include:
15+
- laravel: 8.*
16+
testbench: 6.*
17+
- laravel: 7.*
18+
testbench: 5.*
19+
- laravel: 6.*
20+
testbench: 4.*
21+
22+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
23+
24+
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

.styleci.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
https://twitter.com/pascalbaljet/status/1257926601339277312
33

44
[![Latest Version on Packagist](https://img.shields.io/packagist/v/protonemedia/laravel-analytics-event-tracking.svg?style=flat-square)](https://packagist.org/packages/protonemedia/laravel-analytics-event-tracking)
5-
[![Build Status](https://img.shields.io/travis/protonemedia/laravel-analytics-event-tracking/master.svg?style=flat-square)](https://travis-ci.org/protonemedia/laravel-analytics-event-tracking)
5+
![run-tests](https://github.com/protonemedia/laravel-analytics-event-tracking/workflows/run-tests/badge.svg)
66
[![Quality Score](https://img.shields.io/scrutinizer/g/protonemedia/laravel-analytics-event-tracking.svg?style=flat-square)](https://scrutinizer-ci.com/g/protonemedia/laravel-analytics-event-tracking)
77
[![Total Downloads](https://img.shields.io/packagist/dt/protonemedia/laravel-analytics-event-tracking.svg?style=flat-square)](https://packagist.org/packages/protonemedia/laravel-analytics-event-tracking)
88
[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/protonemedia/laravel-analytics-event-tracking)
@@ -16,7 +16,7 @@ Laravel package to easily send events to [Google Analytics](https://analytics.go
1616
* API calls to GA are queued.
1717
* Easy to configure.
1818
* Compatible with Laravel 6.0 and higher.
19-
* PHP 7.4 required.
19+
* PHP 7.4 or higher required.
2020

2121
## Installation
2222

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.4",
24+
"php": "^7.4 || ^8.0",
2525
"illuminate/bus": "^6.0 || ^7.0 || ^8.0",
2626
"illuminate/queue": "^6.0 || ^7.0 || ^8.0",
2727
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
@@ -30,8 +30,8 @@
3030
},
3131
"require-dev": {
3232
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
33-
"mockery/mockery": "^1.3",
34-
"phpunit/phpunit": "^8.3"
33+
"mockery/mockery": "^1.3.3",
34+
"phpunit/phpunit": "^8.3 || ^9.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

0 commit comments

Comments
 (0)