forked from FriendsOfSymfony/FOSCommentBundle
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.02 KB
/
ci.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
name: CI
on: ['push', 'pull_request']
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php }} + ${{ matrix.symfony-version}})
runs-on: ubuntu-latest
timeout-minutes: 15
env:
SYMFONY_REQUIRE: "${{ matrix.symfony_require }}"
strategy:
matrix:
include:
- php: '7.4'
symfony_require: '4.4.*'
- php: '7.4'
symfony_require: '5.4.*'
- php: '8.1'
symfony_require: '4.4.*'
- php: '8.1'
symfony_require: '5.4.*'
- php: '8.1'
symfony_require: '6.4.*'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
tools: pecl, composer
extensions: curl, json, mbstring, openssl
- name: Install Composer dependencies
run: |
composer install
- name: Run unit tests
run: |
vendor/bin/phpunit