Skip to content

Commit 5875d14

Browse files
authored
Merge pull request #8 from lkck24/Worklow_PHP_8
Enable tests with PHP 7.4 und 8.0
2 parents cc3a569 + 4d57150 commit 5875d14

File tree

2 files changed

+43
-3666
lines changed

2 files changed

+43
-3666
lines changed

.github/workflows/ci.yml

+43-27
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,48 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13-
steps:
14-
- uses: actions/checkout@v2
15-
16-
- name: Validate composer.json and composer.lock
17-
run: composer validate
18-
19-
- name: Get Composer Cache Directory
20-
id: composer-cache
21-
run: |
22-
echo "::set-output name=dir::$(composer config cache-files-dir)"
23-
24-
- name: Install dependencies
25-
run: composer install --prefer-dist --no-progress
13+
strategy:
14+
matrix:
15+
operating-system: [ ubuntu-latest ]
16+
php: [ '7.4' ]
17+
#php: [ '7.4', '8.0' ]
2618

27-
- name: Run test suite
28-
run: composer test
19+
name: PHP ${{ matrix.php }}
2920

30-
- name: Run phpstan
31-
run: composer analyze
32-
33-
- name: Run codestyle checker
34-
run: composer cs-check
35-
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-
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
tools: composer:v2
29+
coverage: none
30+
ini-values: expose_php=1
31+
32+
- name: Validate composer.json and composer.lock
33+
run: composer validate
34+
35+
- name: Get Composer Cache Directory
36+
id: composer-cache
37+
run: |
38+
echo "::set-output name=dir::$(composer config cache-files-dir)"
39+
40+
- name: Install dependencies
41+
run: composer install --prefer-dist --no-progress
42+
43+
- name: Run test suite
44+
run: composer test
45+
46+
- name: Run phpstan
47+
run: composer analyze
48+
49+
- name: Run codestyle checker
50+
run: composer cs-check
51+
52+
- uses: actions/cache@v1
53+
with:
54+
path: ${{ steps.composer-cache.outputs.dir }}
55+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
56+
restore-keys: |
57+
${{ runner.os }}-composer-

0 commit comments

Comments
 (0)