File tree Expand file tree Collapse file tree 21 files changed +2322
-737
lines changed
Expand file tree Collapse file tree 21 files changed +2322
-737
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Mutations
2+ on : push
3+ jobs :
4+ infection :
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 : Infection
25+ run : |
26+ wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar
27+ wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar.asc
28+ chmod +x infection.phar
29+ ./infection.phar
30+
31+ - name : Store infection log
32+ uses : actions/upload-artifact@v3
33+ with :
34+ path : infection.log
Original file line number Diff line number Diff line change 1+ name : PHPStan level 6
2+ on : push
3+ jobs :
4+ phpstan :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : actions/cache@v3
9+ with :
10+ path : ' **/vendor'
11+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+ restore-keys : |
13+ ${{ runner.os }}-composer-
14+ - uses : php-actions/composer@v6
15+ with :
16+ args : --prefer-dist
17+ php_version : ' 8.2'
18+
19+ - name : PHPStan
20+ uses : php-actions/phpstan@v3
21+ with :
22+ path : src/
23+ level : 6
Original file line number Diff line number Diff line change 1+ name : PHPStan level 7
2+ on : push
3+ jobs :
4+ phpstan :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : actions/cache@v3
9+ with :
10+ path : ' **/vendor'
11+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+ restore-keys : |
13+ ${{ runner.os }}-composer-
14+ - uses : php-actions/composer@v6
15+ with :
16+ args : --prefer-dist
17+ php_version : ' 8.2'
18+
19+ - name : PHPStan
20+ uses : php-actions/phpstan@v3
21+ with :
22+ path : src/
23+ level : 7
Original file line number Diff line number Diff line change 1+ name : PHPStan level 8
2+ on : push
3+ jobs :
4+ phpstan :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : actions/cache@v3
9+ with :
10+ path : ' **/vendor'
11+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+ restore-keys : |
13+ ${{ runner.os }}-composer-
14+ - uses : php-actions/composer@v6
15+ with :
16+ args : --prefer-dist
17+ php_version : ' 8.2'
18+
19+ - name : PHPStan
20+ uses : php-actions/phpstan@v3
21+ with :
22+ path : src/
23+ level : 8
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ name : Quality (PHPStan lvl 5)
2+ on : push
3+ jobs :
4+ cs-fixer :
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+ - name : Cs-Fixer
12+ run : |
13+ wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
14+ chmod a+x php-cs-fixer
15+ PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix --dry-run --config=.php-cs-fixer.dist.php
16+
17+ phpstan :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v3
21+ - uses : actions/cache@v3
22+ with :
23+ path : ' **/vendor'
24+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+ restore-keys : |
26+ ${{ runner.os }}-composer-
27+ - uses : php-actions/composer@v6
28+ with :
29+ args : --prefer-dist
30+ php_version : ' 8.2'
31+
32+ - name : PHPStan
33+ uses : php-actions/phpstan@v3
34+ with :
35+ path : src/
36+ args : --level=5
37+
Original file line number Diff line number Diff line change 1+ # github action that checks code with Rector
2+ name : Rector
3+
4+ on :
5+ pull_request : null
6+
7+ jobs :
8+ rector :
9+ runs-on : ubuntu-latest
10+ if : github.event.pull_request.head.repo.full_name == 'php-etl/string-expression-language'
11+ steps :
12+ -
13+ if : github.event.pull_request.head.repo.full_name == github.repository
14+ uses : actions/checkout@v3
15+
16+ -
17+ uses : shivammathur/setup-php@v2
18+ with :
19+ php-version : ' 8.2'
20+ coverage : none
21+
22+ - uses : " ramsey/composer-install@v2"
23+
24+ - run : bin/rector --ansi
25+
26+ -
27+ # commit only to core contributors who have repository access
28+ uses : stefanzweifel/git-auto-commit-action@v4
29+ with :
30+ commit_message : ' [rector] Rector fixes'
31+ commit_author : ' GitHub Action <actions@github.com>'
32+ commit_user_email : ' action@github.com'
Original file line number Diff line number Diff line change 11/vendor /
2+ bin /
3+ .php-cs-fixer.cache
4+ .phpunit.result.cache
Original file line number Diff line number Diff line change 1- # String Expression Language
1+ String Expression Language
2+ ===
23This package extends the [ ExpressionLanguage] ( https://symfony.com/doc/current/components/expression_language.html ) component of Symfony to compile and evaluate arrays with custom functions.
34
5+ [ ![ Mutations] ( https://github.com/php-etl/string-expression-language/actions/workflows/infection.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/infection.yaml )
6+ [ ![ PHPUnit] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpunit.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpunit.yaml )
7+ [ ![ Quality] ( https://github.com/php-etl/string-expression-language/actions/workflows/quality.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/quality.yaml )
8+ [ ![ PHPStan level 5] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-5.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-5.yaml )
9+ [ ![ PHPStan level 6] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-6.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-6.yaml )
10+ [ ![ PHPStan level 7] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-7.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-7.yaml )
11+ [ ![ PHPStan level 8] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-8.yaml/badge.svg )] ( https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-8.yaml )
12+ ![ PHP] ( https://img.shields.io/packagist/php-v/php-etl/string-expression-language )
13+
414# Installation
515```
616composer require php-etl/string-expression-language
You can’t perform that action at this time.
0 commit comments