Skip to content

Commit 26d4205

Browse files
committed
introduced matrix testing for symfony and php versions
1 parent c6d5a63 commit 26d4205

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.github/workflows/ci.yml renamed to .github/workflows/static-analysis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,3 @@ jobs:
2828
run: vendor/bin/php-cs-fixer fix --dry-run
2929
- name: "PSalm"
3030
run: vendor/bin/psalm --show-info=true
31-
- uses: php-actions/phpunit@v3
32-
with:
33-
configuration: phpunit.xml.dist
34-
php_version: 8.2
35-
memory_limit: 1024M
36-
version: 9
37-
testsuite: Unit
38-
bootstrap: vendor/autoload.php

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 10
10+
matrix:
11+
php: [ '7.4', '8.0', '8.1', '8.2']
12+
sf_version: [ '5.4.*', '6.2.*', '6.3.*' ]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Cache Composer dependencies
17+
uses: actions/cache@v2
18+
with:
19+
path: /tmp/composer-cache
20+
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
21+
- uses: php-actions/phpunit@v3
22+
with:
23+
configuration: phpunit.xml.dist
24+
php_version: ${{ matrix.php }}
25+
memory_limit: 1024M
26+
version: 9
27+
testsuite: Unit
28+
bootstrap: vendor/autoload.php

0 commit comments

Comments
 (0)