Skip to content

Commit 79bc852

Browse files
authored
Merge pull request #10 from php-etl/fix/lookup-factory
Fixed foreach that uses the wrong variable
2 parents 2fef25d + 97cdec7 commit 79bc852

22 files changed

+366
-549
lines changed

.github/workflows/infection.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/phpstan-5.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/phpstan-7.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/phpstan-8.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/quality.yaml

Lines changed: 99 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
run: |
1010
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
1111
chmod a+x php-cs-fixer
12-
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
12+
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix --dry-run --config=.php-cs-fixer.dist.php
1313
1414
phpunit:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: '8.1'
20+
php-version: '8.2'
2121
tools: composer:v2
2222
coverage: pcov
2323
- uses: actions/cache@v2
@@ -29,7 +29,7 @@ jobs:
2929
- uses: php-actions/composer@v5
3030
with:
3131
args: --prefer-dist
32-
php_version: 8.1
32+
php_version: 8.2
3333

3434
- name: Run tests & generate Coverage
3535
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
@@ -52,10 +52,105 @@ jobs:
5252
- uses: php-actions/composer@v5
5353
with:
5454
args: --prefer-dist
55-
php_version: 8.1
55+
php_version: 8.2
5656

5757
- name: PHPStan
5858
uses: php-actions/phpstan@v2
5959
with:
6060
path: src/
6161
args: --level=4
62+
63+
phpstan5:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
- uses: actions/cache@v2
68+
with:
69+
path: '**/vendor'
70+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
71+
restore-keys: |
72+
${{ runner.os }}-composer-
73+
- uses: php-actions/composer@v5
74+
with:
75+
args: --prefer-dist
76+
php_version: 8.2
77+
78+
- name: PHPStan
79+
uses: php-actions/phpstan@v2
80+
with:
81+
path: src/
82+
args: --level=5
83+
84+
phpstan7:
85+
runs-on: ubuntu-latest
86+
steps:
87+
- uses: actions/checkout@v2
88+
- uses: actions/cache@v2
89+
with:
90+
path: '**/vendor'
91+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
92+
restore-keys: |
93+
${{ runner.os }}-composer-
94+
- uses: php-actions/composer@v5
95+
with:
96+
args: --prefer-dist
97+
php_version: 8.2
98+
99+
- name: PHPStan
100+
uses: php-actions/phpstan@v2
101+
with:
102+
path: src/
103+
args: --level=7
104+
105+
phpstan8:
106+
runs-on: ubuntu-latest
107+
steps:
108+
- uses: actions/checkout@v2
109+
- uses: actions/cache@v2
110+
with:
111+
path: '**/vendor'
112+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
113+
restore-keys: |
114+
${{ runner.os }}-composer-
115+
- uses: php-actions/composer@v5
116+
with:
117+
args: --prefer-dist
118+
php_version: 8.2
119+
120+
- name: PHPStan
121+
uses: php-actions/phpstan@v2
122+
with:
123+
path: src/
124+
args: --level=8
125+
126+
infection:
127+
runs-on: ubuntu-latest
128+
steps:
129+
- uses: actions/checkout@v2
130+
- uses: shivammathur/setup-php@v2
131+
with:
132+
php-version: '8.2'
133+
tools: composer:v2
134+
coverage: pcov
135+
- uses: actions/cache@v2
136+
with:
137+
path: '**/vendor'
138+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
139+
restore-keys: |
140+
${{ runner.os }}-composer-
141+
- uses: php-actions/composer@v5
142+
with:
143+
args: --prefer-dist
144+
php_version: 8.2
145+
146+
- name: Infection
147+
run: |
148+
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar
149+
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar.asc
150+
chmod +x infection.phar
151+
./infection.phar
152+
153+
- name: Store infection log
154+
uses: actions/upload-artifact@v2
155+
with:
156+
path: infection.log

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"php-etl/fast-map-plugin": "^0.7.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^9.0",
24+
"phpunit/phpunit": "^9.5",
2525
"php-etl/phpunit-extension": "^0.4.0",
2626
"adlawson/vfs": "^0.12.1",
2727
"phpstan/phpstan": "^0.12.93",
2828
"php-etl/sql-flow": "^0.1.0",
29-
"friendsofphp/php-cs-fixer": "^3.0"
29+
"friendsofphp/php-cs-fixer": "^3.0",
30+
"mikey179/vfsstream": "^1.6"
3031
},
3132
"autoload": {
3233
"psr-4": {

0 commit comments

Comments
 (0)