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 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Dec 19, 2021
1 parent f3c275f commit d341764
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 36 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, 7.3]
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 tests/ServiceProviderTest.php
- 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 tests/ServiceProviderTest.php
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All Notable changes to `laravel-webdav` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 1.11.0
- Support for PHP 8.1
- Dropped support for PHP 7.3
- Dropped support for Laravel 6 and 7

## 1.10.0
- Support for PHP 8.0
- Dropped support for PHP 7.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Software License][ico-license]](LICENSE.md)
[![Total Downloads][ico-downloads]][link-downloads]

This package provides a WebDAV driver for Laravel's Filesystem. Laravel 6.0 and higher supported.
This package provides a WebDAV driver for Laravel's Filesystem. Laravel 8.0 supported.

## Support

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"illuminate/filesystem": "^6.0 || ^7.0 || ^8.0",
"php": "^7.4 || ^8.0 || ^8.1",
"illuminate/filesystem": "^8.67",
"league/flysystem-webdav": "^1.0"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "~7.0 || ~8.0 || ~9.0"
"orchestra/testbench": "^6.23",
"phpunit/phpunit": "^9.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit d341764

Please sign in to comment.