Skip to content

Commit 4420cc3

Browse files
committed
Test against PHP 7.4
1 parent a63b832 commit 4420cc3

1 file changed

Lines changed: 11 additions & 129 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
composer-install:
88
strategy:
99
matrix:
10-
php: [7.3]
10+
php: [7.3, 7.4]
1111
composer: [lowest, current, highest]
1212
runs-on: ubuntu-latest
1313
container:
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/cache@v1.0.1
1919
with:
2020
path: ./vendor/
21-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
21+
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
2222
- name: Install Dependencies
2323
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist
2424
if: matrix.composer == 'lowest'
@@ -31,9 +31,9 @@ jobs:
3131
examples:
3232
strategy:
3333
matrix:
34-
php: [7.3]
34+
php: [7.3, 7.4]
3535
composer: [lowest, current, highest]
36-
example: [sleep, versions, json, exception, echo]
36+
example: [sleep, versions]
3737
needs: composer-install
3838
runs-on: ubuntu-latest
3939
container:
@@ -44,14 +44,15 @@ jobs:
4444
uses: actions/cache@v1.0.1
4545
with:
4646
path: ./vendor/
47-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
47+
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
4848
- name: 'Run Example: ${{ matrix.example }}'
49-
run: php ./examples/${{ matrix.example }}.php
50-
tests:
49+
run: php ./examples/${{ matrix.example }}.php
50+
qa:
5151
strategy:
5252
matrix:
53-
php: [7.3]
53+
php: [7.3, 7.4]
5454
composer: [lowest, current, highest]
55+
command: [unit, mutation, lint, phpstan, cs]
5556
needs: composer-install
5657
runs-on: ubuntu-latest
5758
container:
@@ -62,124 +63,5 @@ jobs:
6263
uses: actions/cache@v1.0.1
6364
with:
6465
path: ./vendor/
65-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
66-
- run: ./vendor/bin/phpunit --colors=always -c ./phpunit.xml.dist --coverage-text
67-
mutation:
68-
strategy:
69-
matrix:
70-
php: [7.3]
71-
composer: [lowest, current, highest]
72-
needs: composer-install
73-
runs-on: ubuntu-latest
74-
container:
75-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
76-
steps:
77-
- uses: actions/checkout@v1
78-
- name: Cache composer packages
79-
uses: actions/cache@v1.0.1
80-
with:
81-
path: ./vendor/
82-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
83-
- run: ./vendor/bin/infection --ansi --min-msi=100 --min-covered-msi=100 --threads=$(nproc)
84-
lint:
85-
strategy:
86-
matrix:
87-
php: [7.3]
88-
composer: [lowest, current, highest]
89-
needs: composer-install
90-
runs-on: ubuntu-latest
91-
container:
92-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
93-
steps:
94-
- uses: actions/checkout@v1
95-
- name: Cache composer packages
96-
uses: actions/cache@v1.0.1
97-
with:
98-
path: ./vendor/
99-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
100-
- run: ./vendor/bin/parallel-lint --exclude vendor .
101-
phpstan:
102-
strategy:
103-
matrix:
104-
php: [7.3]
105-
composer: [lowest, current, highest]
106-
needs: composer-install
107-
runs-on: ubuntu-latest
108-
container:
109-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
110-
steps:
111-
- uses: actions/checkout@v1
112-
- name: Cache composer packages
113-
uses: actions/cache@v1.0.1
114-
with:
115-
path: ./vendor/
116-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
117-
- run: ./vendor/bin/phpstan analyse src tests --level max --ansi -c ./phpstan.neon
118-
cs:
119-
strategy:
120-
matrix:
121-
php: [7.3]
122-
composer: [lowest, current, highest]
123-
needs: composer-install
124-
runs-on: ubuntu-latest
125-
container:
126-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
127-
steps:
128-
- uses: actions/checkout@v1
129-
- name: Cache composer packages
130-
uses: actions/cache@v1.0.1
131-
with:
132-
path: ./vendor/
133-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
134-
- run: ./vendor/bin/php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating
135-
psalm:
136-
strategy:
137-
matrix:
138-
php: [7.3]
139-
composer: [lowest, current, highest]
140-
needs: composer-install
141-
runs-on: ubuntu-latest
142-
container:
143-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
144-
steps:
145-
- uses: actions/checkout@v1
146-
- name: Cache composer packages
147-
uses: actions/cache@v1.0.1
148-
with:
149-
path: ./vendor/
150-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
151-
- run: ./vendor/bin/psalm --threads=$(nproc)
152-
composer-unused:
153-
strategy:
154-
matrix:
155-
php: [7.3]
156-
composer: [lowest, current, highest]
157-
needs: composer-install
158-
runs-on: ubuntu-latest
159-
container:
160-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
161-
steps:
162-
- uses: actions/checkout@v1
163-
- name: Cache composer packages
164-
uses: actions/cache@v1.0.1
165-
with:
166-
path: ./vendor/
167-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
168-
- run: composer unused --ansi
169-
composer-require-checker:
170-
strategy:
171-
matrix:
172-
php: [7.3]
173-
composer: [lowest, current, highest]
174-
needs: composer-install
175-
runs-on: ubuntu-latest
176-
container:
177-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
178-
steps:
179-
- uses: actions/checkout@v1
180-
- name: Cache composer packages
181-
uses: actions/cache@v1.0.1
182-
with:
183-
path: ./vendor/
184-
key: ${{ runner.OS }}-${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
185-
- run: ./vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=composer-require-checker.json
66+
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
67+
- run: make qa-${{ matrix.command }}

0 commit comments

Comments
 (0)