-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.64 KB
/
continuous-integration.yml
File metadata and controls
63 lines (53 loc) · 1.64 KB
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
57
58
59
60
61
62
63
name: Continuous Integration
on:
pull_request:
branches: ['2.x', '1.x']
push:
branches: ['2.x', '1.x']
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }})
runs-on: ubuntu-24.04
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
symfony-version:
- '6.4.*'
- '7.3.*'
- '7.4.*@dev'
include:
- php-version: '8.4'
symfony-version: '8.0.*@dev'
- php-version: '8.5'
symfony-version: '8.0.*@dev'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: zip
coverage: pcov
tools: flex
- name: Configure Composer minimum-stability for dev versions
if: contains(matrix.symfony-version, 'dev')
run: composer config minimum-stability dev
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Setup Git
run: |
git config --global init.defaultBranch main
git config --global user.email git-wrapper@leapt.dev
git config --global user.name "Leapt Git Wrapper"
- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*'