Skip to content

Commit 8b12923

Browse files
Yozhefstof
authored andcommitted
feat: run ci check php version and symfony
1 parent 61b88e6 commit 8b12923

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-18.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php:
15+
- '5.5'
16+
- '5.6'
17+
- '7.1'
18+
- '7.2'
19+
- '7.3'
20+
- '7.4'
21+
symfony-versions: [false]
22+
include:
23+
- description: 'Symfony 2.*'
24+
php: '5.6'
25+
symfony-versions: '^2.8'
26+
- description: 'Symfony 3.*'
27+
php: '7.4'
28+
symfony-versions: '^3.0'
29+
- description: 'Symfony 4.*'
30+
php: '7.4'
31+
symfony-versions: '^4.0'
32+
name: PHP ${{ matrix.php }} ${{ matrix.description }}
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
37+
- uses: actions/cache@v2
38+
with:
39+
path: ~/.composer/cache/files
40+
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
41+
42+
- name: Setup PHP
43+
uses: shivammathur/setup-php@v2
44+
with:
45+
php-version: ${{ matrix.php }}
46+
47+
- name: Install dependencies
48+
run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
49+
if: matrix.symfony-versions
50+
51+
- name: Install dependencies
52+
run: composer install
53+
54+
- name: Run PHPUnit tests
55+
run: ./vendor/bin/phpunit --coverage-text

0 commit comments

Comments
 (0)