Skip to content

Commit 119a1e2

Browse files
committed
init
0 parents  commit 119a1e2

18 files changed

+2812
-0
lines changed

.github/workflows/default.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Default
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php-versions: ['8.1', '8.2']
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Setup PHP with PECL extension
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
tools: composer
26+
27+
- name: Cache Composer packages
28+
id: composer-cache
29+
uses: actions/cache@v3
30+
with:
31+
path: vendor
32+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-php-
35+
36+
- name: Install dependencies
37+
run: composer install --prefer-dist --no-progress
38+
39+
- name: Check coding standard
40+
run: vendor/bin/phpcs -p
41+
42+
- name: Analyze with PHPStan
43+
run: vendor/bin/phpstan analyse
44+
45+
- name: Execute PHPUnit tests
46+
run: vendor/bin/phpunit

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
vendor/
3+
.phpunit.cache
4+
.phpcs-cache

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "angelov/phpunit-php-vcr",
3+
"description": "",
4+
"license": "MIT",
5+
"scripts": {
6+
"test": "./vendor/bin/phpunit",
7+
"cs": "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
8+
"cs-fix": "./vendor/bin/php-cs-fixer fix --verbose --diff",
9+
"phpstan": "php -d memory_limit=-1 vendor/bin/phpstan analyse -c phpstan.neon --no-progress -vvv",
10+
"ec": "./vendor/bin/ec"
11+
},
12+
"authors": [
13+
{
14+
"name": "Dejan Angelov",
15+
"homepage": "https://angelovdejan.me"
16+
}
17+
],
18+
"require": {
19+
"php": "^8.1",
20+
"php-vcr/php-vcr": "^1.0"
21+
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^10.0",
24+
"squizlabs/php_codesniffer": "^3.7",
25+
"phpstan/phpstan": "^1.10"
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"Angelov\\PHPUnitPHPVcr\\": "src/"
30+
}
31+
},
32+
"autoload-dev": {
33+
"psr-4": {
34+
"Angelov\\PHPUnitPHPVcr\\Tests\\": "tests/"
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)