Skip to content

Commit 3d57816

Browse files
committed
[Worklow_PHP_8] Enable tests with PHP 7.4 und 8.0
1 parent cc3a569 commit 3d57816

File tree

1 file changed

+33
-21
lines changed

1 file changed

+33
-21
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,44 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13+
strategy:
14+
matrix:
15+
operating-system: [ ubuntu-latest ]
16+
php: [ '7.4', '8.0' ]
17+
18+
name: PHP ${{ matrix.php }}
19+
1320
steps:
14-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v2
22+
23+
- name: Setup PHP
24+
uses: nanasess/setup-php@master
25+
with:
26+
php-version: ${{ matrix.php }}
1527

16-
- name: Validate composer.json and composer.lock
17-
run: composer validate
28+
- name: Validate composer.json and composer.lock
29+
run: composer validate
1830

19-
- name: Get Composer Cache Directory
20-
id: composer-cache
21-
run: |
22-
echo "::set-output name=dir::$(composer config cache-files-dir)"
31+
- name: Get Composer Cache Directory
32+
id: composer-cache
33+
run: |
34+
echo "::set-output name=dir::$(composer config cache-files-dir)"
2335
24-
- name: Install dependencies
25-
run: composer install --prefer-dist --no-progress
36+
- name: Install dependencies
37+
run: composer install --prefer-dist --no-progress
2638

27-
- name: Run test suite
28-
run: composer test
39+
- name: Run test suite
40+
run: composer test
2941

30-
- name: Run phpstan
31-
run: composer analyze
42+
- name: Run phpstan
43+
run: composer analyze
3244

33-
- name: Run codestyle checker
34-
run: composer cs-check
45+
- name: Run codestyle checker
46+
run: composer cs-check
3547

36-
- uses: actions/cache@v1
37-
with:
38-
path: ${{ steps.composer-cache.outputs.dir }}
39-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
40-
restore-keys: |
41-
${{ runner.os }}-composer-
48+
- uses: actions/cache@v1
49+
with:
50+
path: ${{ steps.composer-cache.outputs.dir }}
51+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
52+
restore-keys: |
53+
${{ runner.os }}-composer-

0 commit comments

Comments
 (0)