Skip to content

Commit 4182bac

Browse files
Add PHP 8 compatibility and Use github actions as test CI (#208)
* Add PHP 8 compatibility and Use github actions as test CI
1 parent 469af9d commit 4182bac

File tree

3 files changed

+62
-68
lines changed

3 files changed

+62
-68
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Test application
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
- '[0-9]+.x'
9+
- '[0-9]+.[0-9]+'
10+
- '[0-9]+.[0-9]+.x'
11+
12+
jobs:
13+
test:
14+
name: 'PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-version }} ${{ matrix.dependencies}}'
15+
runs-on: ubuntu-20.04
16+
17+
env:
18+
SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.symfony-deprecation-helper }}
19+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
symfony-version:
25+
- '*'
26+
include:
27+
- php-version: '7.1'
28+
dependencies: 'lowest'
29+
symfony-version: '^3.4'
30+
symfony-deprecation-helper: 'weak'
31+
32+
- php-version: '7.2'
33+
- php-version: '7.3'
34+
- php-version: '7.4'
35+
symfony-version: '^4.4'
36+
- php-version: '7.4'
37+
symfony-version: '5.0.*'
38+
- php-version: '8.0'
39+
40+
steps:
41+
- name: Checkout project
42+
uses: actions/checkout@v2
43+
44+
- name: Install and configure PHP
45+
uses: shivammathur/setup-php@v2
46+
with:
47+
php-version: ${{ matrix.php-version }}
48+
tools: 'composer:v2'
49+
50+
- name: Install Symfony Flex
51+
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
52+
53+
- name: Install dependencies with Composer
54+
uses: ramsey/composer-install@v1
55+
with:
56+
dependency-versions: ${{ matrix.dependencies }}
57+
composer-options: --prefer-dist
58+
59+
- name: Execute test cases
60+
run: make test

.travis.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.1",
12+
"php": "^7.1|^8.0",
1313
"doctrine/data-fixtures": "^1.2",
1414
"symfony/browser-kit": "^3.4.26 || ^4.3.8 || ^5.0"
1515
},
@@ -24,7 +24,7 @@
2424
"symfony/monolog-bundle": "^3.5",
2525
"symfony/security-bundle": "^3.4.26 || ^4.3.8 || ^5.0",
2626
"symfony/twig-bundle": "^3.4.26 || ^4.3.8 || ^5.0",
27-
"symfony/phpunit-bridge": "^4.2.2"
27+
"symfony/phpunit-bridge": "^5.2.1"
2828
},
2929
"autoload": {
3030
"psr-4": {

0 commit comments

Comments
 (0)