Skip to content

Commit 9bfcc8e

Browse files
committed
Update README.md
1 parent beb5ed3 commit 9bfcc8e

File tree

7 files changed

+78
-59
lines changed

7 files changed

+78
-59
lines changed

.github/workflows/coverage.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php: [7.4, 8.0, 8.1]
16+
stability: [ prefer-stable ]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
24+
- name: Setup PHP ${{ matrix.php }}
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip
29+
tools: composer:v2
30+
coverage: xdebug
31+
32+
- name: composer install
33+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
34+
35+
- name: Run tests
36+
run: vendor/bin/phpunit --coverage-clover coverage.xml
37+
38+
- name: Codecov
39+
uses: codecov/codecov-action@v3.1.0
40+
with:
41+
files: ./coverage.xml

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/vendor
2+
/coverage
23
.env
34
.php_cs.cache
45
.phpunit.result.cache
6+
composer.lock

LICENSE

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2020 Shishamou
3+
Copyright (c) 2020-present, A2Workspace Team
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
116

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
1-
# Laravel Automount
1+
<h1 align="center">Laravel Automount</h1>
2+
<p align="center">
3+
<a href="https://github.com/A2Workspace/laravel-automount">
4+
<img alt="" src="https://github.com/A2Workspace/laravel-automount/actions/workflows/coverage.yml/badge.svg">
5+
</a>
6+
<a href="https://github.com/A2Workspace/laravel-automount">
7+
<img alt="" src="https://img.shields.io/github/workflow/status/A2Workspace/laravel-automount/tests?style=flat-square">
8+
</a>
9+
<a href="https://codecov.io/gh/A2Workspace/laravel-automount">
10+
<img alt="" src="https://img.shields.io/codecov/c/github/A2Workspace/laravel-automount.svg?style=flat-square">
11+
</a>
12+
<a href="https://github.com/A2Workspace/laravel-automount/blob/master/LICENSE">
13+
<img alt="" src="https://img.shields.io/github/license/A2Workspace/laravel-automount?style=flat-square">
14+
</a>
15+
<a href="https://packagist.org/packages/a2workspace/laravel-automount">
16+
<img alt="" src="https://img.shields.io/packagist/v/a2workspace/laravel-automount.svg?style=flat-square">
17+
</a>
18+
<a href="https://packagist.org/packages/a2workspace/laravel-automount">
19+
<img alt="" src="https://img.shields.io/packagist/dt/a2workspace/laravel-automount.svg?style=flat-square">
20+
</a>
21+
</p>
222

323
**隨著 PHP 8 的新特性增加,你也許已經不需要此套件了,可參考 [Constructor Property Promotion](https://www.php.net/releases/8.0/en.php#constructor-property-promotion) 的作法**
424

25+
<br>
26+
<br>
527

628
Laravel 的依賴注入很棒,但我們讓他更好!
729

phpunit.xml renamed to phpunit.xml.dist

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
stopOnFailure="false"
1414
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1515
>
16+
<coverage>
17+
<include>
18+
<directory suffix=".php">src</directory>
19+
</include>
20+
</coverage>
1621
<testsuites>
17-
<testsuite name="Unit">
18-
<directory suffix="Test.php">./tests/Unit</directory>
19-
</testsuite>
20-
<testsuite name="Feature">
21-
<directory suffix="Test.php">./tests/Feature</directory>
22+
<testsuite name="Package Test">
23+
<directory suffix="Test.php">./tests/</directory>
2224
</testsuite>
2325
</testsuites>
2426
<php>

tests/Feature/ExampleTest.php

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

tests/Unit/ExampleTest.php

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

0 commit comments

Comments
 (0)