Skip to content

Commit 3337e9f

Browse files
authored
Merge pull request #9 from Chris53897/feature/add-ci-tests-for-php8.2
Feature/add ci tests for php8.2
2 parents 719c34a + c0017c9 commit 3337e9f

3 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/workflows/code_checks.yaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,30 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
13-
stability: [ prefer-lowest, prefer-stable ]
12+
include:
13+
- description: 'Lowest supported requirements'
14+
php: '7.2'
15+
stability: prefer-lowest
16+
- php: '7.2'
17+
stability: prefer-stable
18+
- php: '7.3'
19+
stability: prefer-stable
20+
- php: '7.4'
21+
stability: prefer-stable
22+
- php: '8.0'
23+
stability: prefer-stable
24+
- php: '8.1'
25+
stability: prefer-stable
26+
- php: '8.2'
27+
stability: prefer-stable
1428

15-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} tests
29+
name: PHP ${{ matrix.php }} tests - ${{ matrix.stability }}
1630
steps:
1731
# basically git clone
18-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
1933

2034
- name: Cache dependencies
21-
uses: actions/cache@v1
35+
uses: actions/cache@v3
2236
with:
2337
path: ~/.composer/cache/files
2438
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

.github/workflows/code_coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
code_coverage:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
- uses: shivammathur/setup-php@v2
1212
with:
1313
php-version: 8.0
@@ -17,7 +17,7 @@ jobs:
1717

1818
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
1919

20-
- uses: codecov/codecov-action@v1.3.1
20+
- uses: codecov/codecov-action@v3
2121
with:
2222
token: ${{ secrets.CODECOV_TOKEN }}
2323
files: build/logs/clover.xml

.github/workflows/tests-upcoming-symfony.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@ jobs:
1212
continue-on-error: true
1313
steps:
1414
- name: 'Checkout code'
15-
uses: actions/checkout@v2.3.3
15+
uses: actions/checkout@v3
1616

1717
- name: 'Install PHP with extensions'
18-
uses: shivammathur/setup-php@2.7.0
18+
uses: shivammathur/setup-php@2.22.0
1919
with:
2020
coverage: none
21-
php-version: '8.0'
21+
php-version: '8.1'
2222
tools: composer:v2
2323
extensions: mbstring
2424
ini-values: date.timezone=UTC
2525

2626
- name: 'Install project dependencies'
2727
env:
28-
SYMFONY_REQUIRE: '6.0.x@dev'
28+
SYMFONY_REQUIRE: '6.3.x@dev'
2929
run: |
30+
composer global config --no-plugins allow-plugins.symfony/flex true
3031
composer global require --no-progress --no-scripts --no-plugins symfony/flex
3132
composer config minimum-stability dev
3233
composer config prefer-stable false

0 commit comments

Comments
 (0)