Skip to content

Commit ad0bb15

Browse files
committed
build with github workflow instead of travis-ci
1 parent f5f3628 commit ad0bb15

File tree

3 files changed

+61
-63
lines changed

3 files changed

+61
-63
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
env:
17+
SYMFONY_PHPUNIT_VERSION: 6
18+
SYMFONY_DEPRECATIONS_HELPER: "/.*each.*/"
19+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- php-version: '7.1'
26+
dependencies: 'lowest'
27+
- php-version: '7.2'
28+
symfony-version: 3.3.*
29+
- php-version: '7.2'
30+
symfony-version: 3.4.*
31+
- php-version: '7.2'
32+
symfony-version: 4.0.*
33+
test-installation: true
34+
35+
steps:
36+
- name: Checkout project
37+
uses: actions/checkout@v2
38+
39+
- name: Install and configure PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: ${{ matrix.php-version }}
43+
tools: 'composer:v2'
44+
45+
- name: Install Symfony Flex
46+
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
47+
48+
- name: Install dependencies with Composer
49+
uses: ramsey/composer-install@v1
50+
with:
51+
dependency-versions: ${{ matrix.dependencies }}
52+
composer-options: --prefer-dist
53+
54+
- name: Execute test cases
55+
run: make test
56+
57+
- name: Test installation
58+
if: ${{ matrix.test-installation == true }}
59+
run: make test

.travis.yml

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

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
"symfony/security-core": "^2.8 || ^3.3 || ^4.0"
2020
},
2121
"require-dev": {
22+
"jackalope/jackalope-doctrine-dbal": "^1.3",
2223
"symfony/security-bundle": "^2.8 || ^3.3 || ^4.0",
2324
"symfony/phpunit-bridge": "^4.2.2",
2425
"mockery/mockery": "^0.9.4",
2526
"symfony-cmf/routing-bundle": "^2.1.0",
26-
"symfony-cmf/testing": "^2.1.11",
27+
"symfony-cmf/testing": "^3.3.0",
2728
"doctrine/dbal": "2.5.*",
2829
"doctrine/phpcr-odm": "^1.4|^2.0 ",
2930
"symfony/browser-kit": "^2.8 || ^3.3 || ^4.0",

0 commit comments

Comments
 (0)