forked from FriendsOfSymfony/FOSCommentBundle
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 869 Bytes
/
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
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: '8.1'
symfony_require: '5.4.*'
- php: '8.3'
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