generated from mnapoli/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 15
62 lines (52 loc) · 1.48 KB
/
ci.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
58
59
60
61
62
name: Tests
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
fail-fast: false
matrix:
php: ['8.2', '8.3']
sf_version: ['7.0.*']
include:
- php: '8.0'
sf_version: '5.4.*'
- php: '8.1'
sf_version: '6.4.*'
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
- name: Run tests
env:
PHP_VERSION: ${{ matrix.php }}
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: ./vendor/bin/phpunit
lowest:
name: Lowest deps
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: 8.0
coverage: pcov
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest
- name: Run tests
env:
PHP_VERSION: '8.0'
run: ./vendor/bin/phpunit -v --coverage-text