Skip to content

Commit

Permalink
Add a new alias to composer
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Apr 4, 2023
1 parent d0d4f42 commit 6ccd29f
Show file tree
Hide file tree
Showing 6 changed files with 2,766 additions and 123 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan-6.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHPStan level 5
name: PHPStan level 6
on: push
jobs:
phpstan:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/phpunit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PHPUnit
on: push
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v3
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v6
with:
args: --prefer-dist
php_version: '8.2'

- name: Run tests & generate Coverage
run: bin/phpunit functional --coverage-html var/coverage

- name: Store coverage files
uses: actions/upload-artifact@v3
with:
path: var/coverage
26 changes: 0 additions & 26 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,6 @@ jobs:
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v3
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v6
with:
args: --prefer-dist
php_version: '8.2'
- name: Run tests & generate Coverage
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage
- name: Store coverage files
uses: actions/upload-artifact@v3
with:
path: var/coverage

phpstan:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == 'php-etl/phpunit-extension'
steps:
-
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v3
with:
# Must be used to trigger workflow after push
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/checkout@v3

-
uses: shivammathur/setup-php@v2
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php": "^8.2",
"phpunit/phpunit": "^10.0",
"nikic/php-parser": "^4.10",
"php-etl/pipeline-contracts": "^0.3.0",
"php-etl/pipeline-contracts": "^0.4.0",
"php-http/message": "^1.11",
"php-http/mock-client": "^1.4@dev",
"fakerphp/faker": "^1.19",
Expand All @@ -15,6 +15,8 @@
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"friendsofphp/php-cs-fixer": "^3.0",
"infection/infection": "^0.26.18",
"rector/rector": "^0.15"
},
"license": "MIT",
Expand All @@ -39,7 +41,8 @@
"config": {
"bin-dir": "bin",
"allow-plugins": {
"php-http/discovery": true
"php-http/discovery": true,
"infection/extension-installer": true
}
},
"extra": {
Expand Down

0 comments on commit 6ccd29f

Please sign in to comment.