Skip to content

Commit 3571581

Browse files
committed
feat: first commit
0 parents  commit 3571581

File tree

17 files changed

+384
-0
lines changed

17 files changed

+384
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 4
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.yml]
18+
indent_size = 2

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/art export-ignore
2+
/docs export-ignore
3+
/tests export-ignore
4+
/scripts export-ignore
5+
/.github export-ignore
6+
/.php-cs-fixer.dist.php export-ignore
7+
.editorconfig export-ignore
8+
.gitattributes export-ignore
9+
.gitignore export-ignore
10+
phpstan.neon export-ignore
11+
phpunit.xml export-ignore
12+
CHANGELOG.md export-ignore
13+
CONTRIBUTING.md export-ignore
14+
README.md export-ignore

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
github: nunomaduro
4+
patreon: nunomaduro
5+
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L

.github/workflows/static.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Static Analysis
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
static:
7+
name: Static Tests
8+
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
dependency-version: [prefer-lowest, prefer-stable]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.2
22+
tools: composer:v2
23+
coverage: none
24+
25+
- name: Install Dependencies
26+
run: composer update --prefer-stable --no-interaction --no-progress --ansi
27+
28+
- name: Types
29+
run: composer test:types
30+
31+
- name: Style
32+
run: composer test:lint

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
ci:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest] # (macos-latest, windows-latest) 3.x-dev is under development
11+
php: ['8.2', '8.3']
12+
dependency-version: [prefer-lowest, prefer-stable]
13+
parallel: ['', '--parallel']
14+
15+
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} - ${{ matrix.parallel }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
tools: composer:v2
26+
coverage: none
27+
28+
- name: Setup Problem Matches
29+
run: |
30+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
31+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
32+
33+
- name: Install PHP dependencies
34+
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
35+
36+
- name: Unit Tests
37+
run: composer test:unit

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/*
2+
.idea/codeStyleSettings.xml
3+
composer.lock
4+
/vendor/
5+
coverage.xml
6+
.phpunit.result.cache
7+
/.php-cs-fixer.php
8+
.php-cs-fixer.cache
9+
.temp/coverage.php
10+
*.swp
11+
*.swo
12+
.phpunit.cache

CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# CONTRIBUTING
2+
3+
Contributions are welcome, and are accepted via pull requests.
4+
Please review these guidelines before submitting any pull requests.
5+
6+
## Process
7+
8+
1. Fork the project
9+
1. Create a new branch
10+
1. Code, test, commit and push
11+
1. Open a pull request detailing your changes. Make sure to follow the [template](.github/PULL_REQUEST_TEMPLATE.md)
12+
13+
## Guidelines
14+
15+
* Please ensure the coding style running `composer lint`.
16+
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
17+
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
18+
* Please remember that we follow [SemVer](http://semver.org/).
19+
20+
## Setup
21+
22+
Clone your fork, then install the dev dependencies:
23+
```bash
24+
composer install
25+
```
26+
## Lint
27+
28+
Lint your code:
29+
```bash
30+
composer lint
31+
```
32+
## Tests
33+
34+
Run all tests:
35+
```bash
36+
composer test
37+
```
38+
39+
Check types:
40+
```bash
41+
composer test:types
42+
```
43+
44+
Unit tests:
45+
```bash
46+
composer test:unit
47+
```

LICENSE.md

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) Pest and contributors
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
13+
all 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
21+
THE SOFTWARE.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This repository contains the Pest Plugin Browser.
2+
3+
> If you want to start testing your application with Pest, visit the main **[Pest Repository](https://github.com/pestphp/pest)**.
4+
5+
- Explore our docs at **[pestphp.com »](https://pestphp.com)**
6+
- Follow us on Twitter at **[@pestphp »](https://twitter.com/pestphp)**
7+
- Join us at **[discord.gg/kaHY6p54JH »](https://discord.gg/kaHY6p54JH)** or **[t.me/+kYH5G4d5MV83ODk0 »](https://t.me/+kYH5G4d5MV83ODk0)**
8+
9+
Pest is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.
10+

composer.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "pestphp/pest-plugin-browser",
3+
"description": "Pest plugin to test browser interactions",
4+
"keywords": [
5+
"php",
6+
"framework",
7+
"pest",
8+
"unit",
9+
"test",
10+
"testing",
11+
"browser"
12+
],
13+
"license": "MIT",
14+
"require": {
15+
"php": "^8.2",
16+
"pestphp/pest": "^3.0.0",
17+
"pestphp/pest-plugin": "^3.0.0"
18+
},
19+
"autoload": {
20+
"psr-4": {
21+
"Pest\\PluginName\\": "src/"
22+
},
23+
"files": [
24+
"src/Autoload.php"
25+
]
26+
},
27+
"require-dev": {
28+
"pestphp/pest-dev-tools": "^3.4.0"
29+
},
30+
"minimum-stability": "dev",
31+
"prefer-stable": true,
32+
"config": {
33+
"sort-packages": true,
34+
"preferred-install": "dist",
35+
"allow-plugins": {
36+
"pestphp/pest-plugin": true
37+
}
38+
},
39+
"scripts": {
40+
"refacto": "rector",
41+
"lint": "pint",
42+
"test:refacto": "rector --dry-run",
43+
"test:lint": "pint --test",
44+
"test:types": "phpstan analyse --ansi",
45+
"test:unit": "pest --colors=always",
46+
"test": [
47+
"@test:refacto",
48+
"@test:lint",
49+
"@test:types",
50+
"@test:unit"
51+
]
52+
}
53+
}

0 commit comments

Comments
 (0)