-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (63 loc) · 2 KB
/
Copy pathtests.yaml
File metadata and controls
70 lines (63 loc) · 2 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
64
65
66
67
68
69
70
name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: "Tests (PHP ${{ matrix.php }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: 8.3
symfony-version: 7.2.*
composer-flags: '--prefer-stable --ignore-platform-req=php+'
stability: stable
- php: 8.3
symfony-version: 7.3.*
composer-flags: '--prefer-stable'
- php: 8.3
symfony-version: 7.4.*
composer-flags: '--prefer-stable'
- php: 8.4
symfony-version: 7.2.*
composer-flags: '--prefer-stable'
- php: 8.4
symfony-version: 7.3.*
composer-flags: '--prefer-stable'
- php: 8.4
symfony-version: 7.4.*
composer-flags: '--prefer-stable'
- php: 8.4
symfony-version: 8.0.*
composer-flags: '--prefer-stable'
- php: 8.5
symfony-version: 7.3.*
composer-flags: '--prefer-stable'
- php: 8.5
symfony-version: 7.4.*
composer-flags: '--prefer-stable'
- php: 8.5
symfony-version: 8.0.*
composer-flags: '--prefer-stable'
steps:
- name: "Checkout"
uses: actions/checkout@v6
- name: "Install PHP with extensions"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --optimize-autoloader
- name: Install PDFtk
run: sudo apt install -y pdftk
- name: Run tests and collect coverage
run: vendor/bin/phpunit --coverage-clover coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}