Skip to content

Commit 3755314

Browse files
committed
prepare for 1.0.0
1 parent a2f6f5e commit 3755314

File tree

10 files changed

+165
-27
lines changed

10 files changed

+165
-27
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22

33
*.md diff=markdown
44
*.php diff=php
5-
6-
/.github export-ignore
7-
CHANGELOG.md export-ignore

.github/workflows/testing.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,23 @@ name: Testing
22

33
on:
44
push:
5-
pull_request:
65
schedule:
76
# run tests on every week Monday
87
- cron: '0 0 * * 1'
98

109
jobs:
11-
testing:
12-
name: PHP ${{ matrix.php }}
10+
static_analyze:
11+
name: Static Analyze
1312

1413
runs-on: ubuntu-latest
1514

16-
strategy:
17-
fail-fast: false
18-
19-
matrix:
20-
php: [ '8.2', '8.1' ]
21-
2215
steps:
2316
- uses: actions/checkout@v4
2417

2518
- name: Setup PHP with PECL extension
2619
uses: shivammathur/setup-php@v2
2720
with:
28-
php-version: ${{ matrix.php }}
21+
php-version: 8.1
2922
coverage: xdebug
3023

3124
- name: Get composer cache directory
@@ -35,8 +28,8 @@ jobs:
3528
uses: actions/cache@v3
3629
with:
3730
path: ${{ env.COMPOSER_DIR }}
38-
key: ${{ runner.os }}-composer-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
39-
restore-keys: ${{ runner.os }}-composer-
31+
key: ${{ runner.os }}-composer-static-analyze-${{ hashFiles('**/composer.json') }}
32+
restore-keys: ${{ runner.os }}-composer-static-analyze-
4033

4134
- name: Install dependencies
4235
run: composer update --no-progress --no-interaction
@@ -59,5 +52,38 @@ jobs:
5952
- name: Run type coverage check
6053
run: vendor/bin/pest --type-coverage --min=90
6154

55+
testing:
56+
name: PHP ${{ matrix.php }} (Testing)
57+
58+
runs-on: ubuntu-latest
59+
60+
strategy:
61+
fail-fast: false
62+
63+
matrix:
64+
php: [ '8.2', '8.1' ]
65+
66+
steps:
67+
- uses: actions/checkout@v4
68+
69+
- name: Setup PHP with PECL extension
70+
uses: shivammathur/setup-php@v2
71+
with:
72+
php-version: ${{ matrix.php }}
73+
coverage: xdebug
74+
75+
- name: Get composer cache directory
76+
run: echo "COMPOSER_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
77+
78+
- name: Cache dependencies
79+
uses: actions/cache@v3
80+
with:
81+
path: ${{ env.COMPOSER_DIR }}
82+
key: ${{ runner.os }}-composer-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
83+
restore-keys: ${{ runner.os }}-composer-php-${{ matrix.php }}-
84+
85+
- name: Install dependencies
86+
run: composer update --no-progress --no-interaction
87+
6288
- name: Run tests
6389
run: vendor/bin/pest --coverage --min=90

.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
/.phpunit.cache
2-
/vendor
1+
/.fleet
2+
/.idea
3+
/.vscode
34
/coverage
5+
/vendor
6+
.DS_Store
7+
.phpunit.result.cache
48
clover.xml
59
composer.phar
610
composer.lock
7-
.DS_Store
811
Thumbs.db
9-
/phpunit.xml
10-
/.idea
11-
/.fleet
12-
/.vscode
13-
.phpunit.result.cache

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.x
2+
3+
- 1.0.0 (2023-11-20)
4+
- Initial release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Storipress
4+
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:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
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 THE
21+
SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Extra Providers for Laravel Socialite
2+
3+
[![Actions Status](https://github.com/storipress/socialite-providers/workflows/Testing/badge.svg)](https://github.com/storipress/socialite-providers/actions)
4+
[![Latest Stable Version](https://poser.pugx.org/storipress/socialite-providers/v/stable)](https://packagist.org/packages/storipress/socialite-providers)
5+
[![License](https://poser.pugx.org/storipress/socialite-providers/license)](https://packagist.org/packages/storipress/socialite-providers)
6+
7+
- [Version](#version)
8+
- [Installation](#installation)
9+
- [Usage](#usage)
10+
- [Changelog](#changelog)
11+
- [Upgrade](#upgrade)
12+
- [License](#license)
13+
14+
## Version
15+
16+
1.0.0
17+
18+
### Supported Laravel Version
19+
20+
10.x
21+
22+
## Installation
23+
24+
Install using composer
25+
26+
```sh
27+
composer require storipress/socialite-providers
28+
```
29+
30+
Done.
31+
32+
## Usage
33+
34+
TODO
35+
36+
## Changelog
37+
38+
Please see [CHANGELOG](CHANGELOG.md) for details.
39+
40+
## Upgrade
41+
42+
Please see [UPGRADE](UPGRADE.md) for details.
43+
44+
## License
45+
46+
Socialite Providers is licensed under [The MIT License (MIT)](LICENSE).

UPGRADE.md

Whitespace-only changes.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"socialiteproviders/manager": "^4.4"
1111
},
1212
"require-dev": {
13-
"ergebnis/composer-normalize": "^2.37",
13+
"ergebnis/composer-normalize": "^2.39",
1414
"laravel/pint": "^1.13",
1515
"nunomaduro/larastan": "^2.6",
16-
"orchestra/testbench": "^8.11",
16+
"orchestra/testbench": "^8.15",
1717
"pestphp/pest-plugin-laravel": "^2.2",
18-
"pestphp/pest-plugin-type-coverage": "^2.2"
18+
"pestphp/pest-plugin-type-coverage": "^2.4"
1919
},
2020
"minimum-stability": "stable",
2121
"prefer-stable": true,

phpstan.neon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ parameters:
99

1010
paths:
1111
- src
12-
# - tests
12+
- tests
13+
14+
ignoreErrors:
15+
-
16+
message: '#Call to an undefined method Pest\\PendingCalls\\TestCall\|Pest\\Support\\HigherOrderTapProxy\:\:.+?\.#'
17+
paths:
18+
- tests/*

phpunit.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
bootstrap="vendor/autoload.php"
6+
beStrictAboutChangesToGlobalState="true"
7+
colors="true"
8+
columns="max"
9+
executionOrder="random"
10+
enforceTimeLimit="true"
11+
defaultTimeLimit="2"
12+
timeoutForSmallTests="1"
13+
timeoutForMediumTests="3"
14+
timeoutForLargeTests="5"
15+
>
16+
<source>
17+
<include>
18+
<directory>src</directory>
19+
</include>
20+
</source>
21+
<testsuites>
22+
<testsuite name="Test Suite">
23+
<directory>tests</directory>
24+
</testsuite>
25+
</testsuites>
26+
<coverage>
27+
<report>
28+
<clover outputFile="clover.xml"/>
29+
<html outputDirectory="coverage" lowUpperBound="80" highLowerBound="95"/>
30+
</report>
31+
</coverage>
32+
<php>
33+
<ini name="memory_limit" value="-1"/>
34+
<ini name="error_reporting" value="-1"/>
35+
<ini name="log_errors_max_len" value="0"/>
36+
<ini name="xdebug.show_exception_trace" value="0"/>
37+
<ini name="zend.assertions" value="1"/>
38+
<ini name="assert.exception" value="1"/>
39+
</php>
40+
</phpunit>

0 commit comments

Comments
 (0)