-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (61 loc) · 1.57 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
63
64
65
66
name: CI
on:
push:
pull_request:
defaults:
run:
shell: bash
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
symfony: ['symfony3', 'symfony4', 'symfony5']
include:
- php: '8.1'
symfony: 'symfony6'
- php: '8.2'
symfony: 'symfony6'
- php: '8.3'
symfony: 'symfony6'
- php: '8.2'
symfony: 'symfony7'
- php: '8.3'
symfony: 'symfony7'
fail-fast: false
env:
MATRIX_PHP: ${{ matrix.php }}
MATRIX_SYMFONY: ${{ matrix.symfony }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
coverage: "none"
php-version: "${{ matrix.php }}"
tools: composer
- name: Install scenario
run: |
.scenarios.lock/install "${{ matrix.symfony }}" "${DEPENDENCIES}"
- name: Add browser drivers
uses: nanasess/setup-chromedriver@v2
- name: Run unit tests
run: |
vendor/bin/phpunit -v
- name: Run behat tests
run: |
vendor/bin/behat --config=tests/Behat/behat.yml
- name: Archive logs artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: logs_php-${{ matrix.php }}
path: |
logs