-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (49 loc) · 1.57 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# .github/workflows/ci.yaml
name: Code_Checks
on: ["push", "pull_request"]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.0']
stability: [ prefer-stable ]
include:
- php: '8.0'
stability: prefer-lowest
symfony-version: 4.4
- php: '8.0'
symfony-version: 5.4
- php: '8.1'
symfony-version: 5.4
- php: '8.2'
symfony-version: 5.4
- php: '8.2'
symfony-version: 6.4
- php: '8.3'
symfony-version: 7.0
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} tests
steps:
# basically git clone
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
# use PHP of specific version
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pcov
coverage: pcov
- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader
- name: Execute tests
run: vendor/bin/phpunit -c ./phpunit.xml.dist ./tests