Skip to content

Commit

Permalink
feat!: add support for Laravel 10 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Jun 13, 2023
1 parent d9aed36 commit 94908d4
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 61 deletions.
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at https://editorconfig.org

root = true

[*]
Expand All @@ -13,3 +10,6 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*{.yml,.yaml}]
indent_size = 2
17 changes: 0 additions & 17 deletions .github/renovate.json

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Integrate

on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
dependency-version: [ prefer-lowest, prefer-stable ]
laravel: [ '10.*', '9.*' ]
php: [ '8.2', '8.1', '8.0', ]
include:
- laravel: '10.*'
testbench: '8.*'
- laravel: '9.*'
testbench: '7.*'

exclude:
- laravel: '10.*'
php: 8.0
fail-fast: false

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
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
- name: Run Test Suite
run: "./vendor/bin/phpunit"
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/laravel-%5E6.0%20||%20%5E7.0%20||%20%5E8.0%20||%20%5E9.0-FF2D20.svg?style=flat-square" alt="Support Laravel versions">
<img src="https://img.shields.io/badge/laravel-%209.x%20|%2010.x-FF2D20.svg?style=flat-square" alt="Support Laravel versions">
<a href="https://packagist.org/packages/hedger/laravel-envicon"><img src="https://img.shields.io/packagist/v/hedger/laravel-envicon.svg?style=flat-square" alt="Latest Version on Packagist"></a>
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Software License"></a>
<a href="https://github.com/nhedger/laravel-envicon/actions?query=workflow%3ATest"><img src="https://img.shields.io/github/workflow/status/nhedger/laravel-envicon/Test/master?style=flat-square" alt="Build Status"></a>
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/nhedger/laravel-envicon/integrate.yml?style=flat-square">
</p>

This packages allows you to display a custom favicon depending on your
This package allows you to display a custom favicon depending on your
runtime environment. This makes it easy to identify immediately on which
environment you're browsing.

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"minimum-stability": "stable",
"require": {
"php": "~7.2 || ^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0"
"php": "~8.0 || ~8.1 || ~8.2",
"illuminate/support": "^9.0 || ^10.0"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^8.0 || ^9.0"
"orchestra/testbench": "^7.0 || ^8.0",
"phpunit/phpunit": "^9.0 || ^10.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 94908d4

Please sign in to comment.