Skip to content

Commit c67002e

Browse files
committed
wip
1 parent dd58750 commit c67002e

File tree

6 files changed

+63
-48
lines changed

6 files changed

+63
-48
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://spatie.be/open-source/support-us

.github/workflows/run-tests.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest, windows-latest]
12+
php: [7.4]
13+
laravel: [5.8.*, 6.*, 7.*]
14+
dependency-version: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 7.*
17+
testbench: 5.*
18+
- laravel: 6.*
19+
testbench: 4.*
20+
- laravel: 5.8.*
21+
testbench: 3.8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v1
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v1
31+
with:
32+
path: ~/.composer/cache/files
33+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
47+
- name: Execute tests
48+
run: vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-directory-cleanup.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-directory-cleanup)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
5-
[![Build Status](https://img.shields.io/travis/spatie/laravel-directory-cleanup/master.svg?style=flat-square)](https://travis-ci.org/spatie/laravel-directory-cleanup)
5+
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/spatie/laravel-directory-cleanup/run-tests?label=tests)
66
[![Quality Score](https://img.shields.io/scrutinizer/g/spatie/laravel-directory-cleanup.svg?style=flat-square)](https://scrutinizer-ci.com/g/spatie/laravel-directory-cleanup)
77
[![StyleCI](https://styleci.io/repos/57290433/shield?branch=master)](https://styleci.io/repos/57290433)
88
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-directory-cleanup.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-directory-cleanup)
99

1010
This package will delete old files from directories. You can use a configuration file to specify the maximum age of a file in a certain directory.
1111

12+
## Support us
13+
14+
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
15+
16+
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
17+
1218
## Installation
1319

1420
You can install the package via composer:
@@ -122,27 +128,12 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
122128

123129
If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.
124130

125-
## Postcardware
126-
127-
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
128-
129-
Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.
130-
131-
We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).
132-
133131
## Credits
134132

135133
- [Jolita Grazyte](https://github.com/JolitaGrazyte)
136134
- [Freek Van der Herten](https://github.com/freekmurze)
137135
- [All Contributors](../../contributors)
138136

139-
## Support us
140-
141-
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).
142-
143-
Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/spatie).
144-
All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
145-
146137
## License
147138

148139
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

composer.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
],
2424
"require": {
2525
"php" : "^7.2",
26-
"illuminate/support": "~5.8.0|^6.0",
26+
"illuminate/support": "~5.8.0|^6.0|^7.0",
2727
"nesbot/carbon": "^1.0|^2.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^8.0",
31-
"mockery/mockery": "^1.1",
32-
"orchestra/testbench":"~3.8.0|^4.0"
30+
"phpunit/phpunit": "^8.0|^9.0",
31+
"mockery/mockery": "^1.3",
32+
"orchestra/testbench":"~3.8.0|^4.0|^5.0"
3333
},
3434
"autoload": {
3535
"psr-4": {
@@ -50,5 +50,7 @@
5050
"Spatie\\DirectoryCleanup\\DirectoryCleanupServiceProvider"
5151
]
5252
}
53-
}
53+
},
54+
"minimum-stability": "dev",
55+
"prefer-stable": true
5456
}

phpunit.xml.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,4 @@
1919
<directory suffix=".php">src/</directory>
2020
</whitelist>
2121
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
2922
</phpunit>

0 commit comments

Comments
 (0)