Skip to content

Commit 0033d5d

Browse files
committed
ci: adjustments and run tests on PHP 8.1
1 parent 3eec659 commit 0033d5d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
uses: shivammathur/setup-php@v2
1212
with:
1313
php-version: 7.1
14-
tools: composer:v2
1514
- name: Validate composer.json and composer.lock
1615
run: composer validate
1716
- name: Cache module
@@ -20,7 +19,7 @@ jobs:
2019
path: ~/.composer/cache/
2120
key: composer-cache
2221
- name: Install dependencies
23-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
22+
run: composer install --no-interaction
2423
- name: Lint files
2524
run: composer run phpcs
2625

@@ -32,14 +31,12 @@ jobs:
3231
uses: shivammathur/setup-php@v2
3332
with:
3433
php-version: 7.1
35-
coverage: xdebug
36-
tools: composer:v2
3734
- name: Cache module
3835
uses: actions/cache@v2
3936
with:
4037
path: ~/.composer/cache/
4138
key: composer-cache
4239
- name: Install dependencies
43-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
40+
run: composer install --no-interaction
4441
- name: Analyse files
4542
run: composer run phpstan

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ jobs:
1010
matrix:
1111
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
1212
os: [ubuntu-latest]
13+
experimental: [false]
14+
composer-options: ['']
15+
include:
16+
- { php-version: '8.1', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
1317
steps:
1418
- uses: actions/checkout@v2
1519
- name: Use php ${{ matrix.php-version }}
1620
uses: shivammathur/setup-php@v2
1721
with:
1822
php-version: ${{ matrix.php-version }}
1923
extensions: posix, mbstring
20-
coverage: xdebug
24+
coverage: pcov
2125
tools: composer:v2
2226
- name: Cache module
2327
uses: actions/cache@v2
2428
with:
2529
path: ~/.composer/cache/
2630
key: composer-cache
2731
- name: Install dependencies
28-
if: ${{ matrix.php-version != '8.0' }}
29-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
30-
- name: Install dependencies for php 8.0
31-
if: ${{ matrix.php-version == '8.0' }}
32-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
32+
run: composer install --no-interaction ${{ matrix.composer-options }}
3333
- name: Run php tests
3434
run: composer run test
3535
- name: Send coverage

0 commit comments

Comments
 (0)