-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (48 loc) · 1.28 KB
/
tests.yml
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
name: 'Tests'
on:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
- cron: '0 0 * * *'
permissions:
contents: 'read'
jobs:
test:
name: 'Build and Test - PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony-version }} ${{ matrix.deps }}'
runs-on: 'ubuntu-latest'
strategy:
matrix:
symfony-version:
- '^7.0'
php:
- '8.2'
- '8.3'
deps:
- 'lowest'
- 'highest'
include:
# LTS
- symfony-version: '^6.4'
php: '8.3'
deps: 'highest'
env:
SYMFONY_REQUIRE: '${{ matrix.symfony-version }}'
steps:
- uses: 'actions/checkout@v4'
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
coverage: 'none'
- name: 'Validate composer.json and composer.lock'
run: 'composer validate --strict'
- name: 'Install dependencies'
uses: 'ramsey/composer-install@v3'
with:
dependency-versions: '${{ matrix.deps }}'
- name: 'Validate dependencies'
run: './vendor/bin/composer-dependency-analyser --show-all-usages'
- name: 'Run test suite'
run: 'php vendor/bin/phpunit'