-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from php-etl/remove-symfony-cache
Remove symfony/cache
- Loading branch information
Showing
12 changed files
with
606 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PHPSpec | ||
on: push | ||
jobs: | ||
phpspec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
coverage: pcov | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: --prefer-dist | ||
php_version: '8.2' | ||
- name: PHP Spec | ||
run: bin/phpspec run spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: PHPStan level 5 | ||
on: push | ||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
version: '2.3.10' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
level: 5 | ||
php_version: '8.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PHPStan level 6 | ||
on: push | ||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
level: 6 | ||
php_version: '8.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PHPStan level 7 | ||
on: push | ||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
level: 7 | ||
php_version: '8.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PHPStan level 8 | ||
on: push | ||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
level: 8 | ||
php_version: '8.2' |
43 changes: 18 additions & 25 deletions
43
.github/workflows/actions.yml → .github/workflows/quality.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,40 @@ | ||
name: Quality | ||
name: Quality (PHPStan level 3) | ||
on: push | ||
jobs: | ||
cs-fixer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
- name: Cs-Fixer | ||
run: | | ||
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer | ||
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer | ||
chmod a+x php-cs-fixer | ||
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
phpstan-level: [ 3, 5, 7, 8 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- uses: php-actions/composer@v5 | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
args: --prefer-dist | ||
php_version: 8.0 | ||
|
||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v2 | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
args: --level=${{ matrix.phpstan-level }} | ||
|
||
phpspec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: php-actions/composer@v5 | ||
with: | ||
args: --prefer-dist | ||
php_version: 8.0 | ||
- name: PHP Spec | ||
run: bin/phpspec run spec | ||
level: 3 | ||
php_version: '8.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# github action that checks code with Rector | ||
name: Rector | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
rector: | ||
# Don't run on forks. | ||
if: github.repository == 'php-etl/phpspec-extension' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
|
||
- | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
coverage: none | ||
|
||
- uses: "ramsey/composer-install@v2" | ||
|
||
- run: bin/rector --ansi | ||
|
||
- | ||
# commit only to core contributors who have repository access | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: '[rector] Rector fixes' | ||
commit_author: 'GitHub Action <[email protected]>' | ||
commit_user_email: '[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.env | ||
.idea/ | ||
vendor/ | ||
!.idea/runConfigurations | ||
bin/ | ||
!.idea/runConfigurations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.