Skip to content

Commit 5c7fd07

Browse files
committed
Add a new alias to composer
1 parent d0d4f42 commit 5c7fd07

File tree

6 files changed

+2766
-123
lines changed

6 files changed

+2766
-123
lines changed

.github/workflows/phpstan-6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHPStan level 5
1+
name: PHPStan level 6
22
on: push
33
jobs:
44
phpstan:

.github/workflows/phpunit.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PHPUnit
2+
on: push
3+
jobs:
4+
phpunit:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: '8.2'
11+
tools: composer:v2
12+
coverage: pcov
13+
- uses: actions/cache@v3
14+
with:
15+
path: '**/vendor'
16+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-composer-
19+
- uses: php-actions/composer@v6
20+
with:
21+
args: --prefer-dist
22+
php_version: '8.2'
23+
24+
- name: Run tests & generate Coverage
25+
run: bin/phpunit --coverage-html var/coverage
26+
27+
- name: Store coverage files
28+
uses: actions/upload-artifact@v3
29+
with:
30+
path: var/coverage

.github/workflows/quality.yaml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,6 @@ jobs:
1515
chmod a+x php-cs-fixer
1616
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1717
18-
phpunit:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v3
22-
- uses: shivammathur/setup-php@v2
23-
with:
24-
php-version: '8.2'
25-
tools: composer:v2
26-
coverage: pcov
27-
- uses: actions/cache@v3
28-
with:
29-
path: '**/vendor'
30-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
31-
restore-keys: |
32-
${{ runner.os }}-composer-
33-
- uses: php-actions/composer@v6
34-
with:
35-
args: --prefer-dist
36-
php_version: '8.2'
37-
- name: Run tests & generate Coverage
38-
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage
39-
- name: Store coverage files
40-
uses: actions/upload-artifact@v3
41-
with:
42-
path: var/coverage
43-
4418
phpstan:
4519
runs-on: ubuntu-latest
4620
steps:

.github/workflows/rector.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.event.pull_request.head.repo.full_name == 'php-etl/phpunit-extension'
1111
steps:
12-
-
13-
if: github.event.pull_request.head.repo.full_name == github.repository
14-
uses: actions/checkout@v3
15-
with:
16-
# Must be used to trigger workflow after push
17-
token: ${{ secrets.ACCESS_TOKEN }}
12+
- uses: actions/checkout@v3
1813

1914
-
2015
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"php": "^8.2",
77
"phpunit/phpunit": "^10.0",
88
"nikic/php-parser": "^4.10",
9-
"php-etl/pipeline-contracts": "^0.3.0",
9+
"php-etl/pipeline-contracts": "^0.4.0",
1010
"php-http/message": "^1.11",
1111
"php-http/mock-client": "^1.4@dev",
1212
"fakerphp/faker": "^1.19",
@@ -15,6 +15,8 @@
1515
},
1616
"require-dev": {
1717
"phpstan/phpstan": "^1.10",
18+
"friendsofphp/php-cs-fixer": "^3.0",
19+
"infection/infection": "^0.26.18",
1820
"rector/rector": "^0.15"
1921
},
2022
"license": "MIT",
@@ -39,7 +41,8 @@
3941
"config": {
4042
"bin-dir": "bin",
4143
"allow-plugins": {
42-
"php-http/discovery": true
44+
"php-http/discovery": true,
45+
"infection/extension-installer": true
4346
}
4447
},
4548
"extra": {

0 commit comments

Comments
 (0)