-
Notifications
You must be signed in to change notification settings - Fork 343
59 lines (52 loc) · 1.43 KB
/
continuous-integration.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
57
58
59
name: CI
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-test:
runs-on: ubuntu-latest
name: 'PHPUnit (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} + ${{ matrix.dependencies }} deps, ES ${{ matrix.elasticsearch }})'
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
symfony:
- '5.4.*'
- '6.3.*'
dependencies:
- 'highest'
include:
- php: '7.4'
dependencies: 'lowest'
exclude:
- php: '7.4'
dependencies: 'highest'
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
coverage: 'none'
extensions: 'curl, json, intl, mbstring, mongodb, openssl'
- name: 'Install Composer dependencies'
uses : 'ramsey/composer-install@v2'
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--no-interaction"
# - uses: php-actions/phpunit@v3
# with:
# version
- name: 'Run unit tests'
run: |
vendor/bin/phpunit
# ... then your own project steps ...