Skip to content

Commit

Permalink
Merge pull request #25 from arnidan/php-8
Browse files Browse the repository at this point in the history
Laravel 8.x only, PHP 8 compatibility & Build on Github Actions
  • Loading branch information
hedii authored Nov 30, 2020
2 parents d5ee7d1 + ff247c9 commit b88c665
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests
on: [ push, pull_request ]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
name: Testing on PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring,bcmath
tools: phpunit,composer
- name: Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress
- name: Run tests
run: composer test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.idea
/vendor
composer.lock
composer.lock
.phpunit.result.cache
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/hedii/laravel-gelf-logger.svg?branch=master)](https://travis-ci.org/hedii/laravel-gelf-logger)
![Build Status](https://github.com/hedii/laravel-gelf-logger/workflows/build/badge.svg)

# Laravel Gelf Logger

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"source": "https://github.com/hedii/laravel-gelf-logger"
},
"require": {
"php": "^7.2.5",
"illuminate/log": "^7.0|^8.0",
"php": "^7.3|^8.0",
"illuminate/log": "^8.12",
"graylog2/gelf-php": "^1.6"
},
"require-dev": {
"orchestra/testbench": "^5.0"
"orchestra/testbench": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit b88c665

Please sign in to comment.