Skip to content

Commit 0cb7865

Browse files
authored
Merge pull request #18 from dantleech/feature/github-ci
Move CI from Travis to Github
2 parents 50d80ae + b98e6e8 commit 0cb7865

File tree

8 files changed

+80
-97
lines changed

8 files changed

+80
-97
lines changed

.github/workflows/ci.yaml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
9+
jobs:
10+
php:
11+
name: "PHP ${{ matrix.php-version }}"
12+
runs-on: ubuntu-latest
13+
14+
env:
15+
KERNEL_CLASS: DTL\Bundle\PhpcrMigrations\Tests\Resources\App\AppKernel
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- php-version: '7.2'
22+
symfony-version: '^4.4'
23+
monolog-version: '^1.0'
24+
25+
- php-version: '7.3'
26+
symfony-version: '^5.4'
27+
monolog-version: '^1.0'
28+
29+
- php-version: '7.4'
30+
symfony-version: '^5.4'
31+
monolog-version: '^2.0'
32+
33+
- php-version: '8.0'
34+
symfony-version: '6.0.*'
35+
monolog-version: '^2.0'
36+
37+
- php-version: '8.1'
38+
symfony-version: '^6.0'
39+
monolog-version: '^2.0'
40+
41+
steps:
42+
- name: Checkout project
43+
uses: actions/checkout@v2
44+
45+
- name: Install and configure PHP
46+
uses: shivammathur/setup-php@v2
47+
with:
48+
php-version: ${{ matrix.php-version }}
49+
extensions: ctype, iconv, mysql
50+
tools: composer:v2
51+
ini-values: memory_limit=-1
52+
coverage: none
53+
54+
- name: Add additional packages
55+
run: |
56+
composer require monolog/monolog:${{ matrix.monolog-version }} --no-update
57+
composer require symfony/symfony:${{ matrix.symfony-version }} --no-update
58+
59+
- name: Install composer dependencies
60+
uses: ramsey/composer-install@v1
61+
with:
62+
dependency-versions: ${{matrix.dependency-versions}}
63+
64+
- name: Prepare phpcr odm doctrine dbal
65+
run: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
66+
67+
- name: Run tests
68+
run: vendor/bin/simple-phpunit

.travis.yml

-89
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
- Support Symfony 6
8+
- Drop Support for PHP <= 7.1 and Symfony <= 4.3
89

910
1.2.0
1011
-----

Tests/Resources/App/AppKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function prepareContainer(ContainerBuilder $container)
4747
$container->setParameter('cmf_testing.bundle_fqn', 'DTL\Bundle\PhpcrMigrations\PhpcrMigrationsBundle');
4848
}
4949

50-
protected function getKernelParameters()
50+
protected function getKernelParameters(): array
5151
{
5252
$kernelParameters = parent::getKernelParameters();
5353
$kernelParameters['kernel.root_dir'] = $this->getKernelDir();

Tests/Resources/App/config/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
phpcr_migrations:
22
version_node_name: "jcr:migrations"
3+
4+
framework:
5+
annotations: true

Tests/Resources/App/var/cache/AppDTL_Bundle_PhpcrMigrations_Tests_Resources_App_AppKernelPhpcrDebugContainer.php

Whitespace-only changes.

composer.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
}
1010
],
1111
"require": {
12+
"php": "^7.2 || ^8.0",
1213
"phpcr/phpcr-migrations": "^1.1",
1314
"phpcr/phpcr-implementation": "^2.1",
1415
"doctrine/phpcr-bundle": "^1.3 || ^2.0",
15-
"symfony/config": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
16-
"symfony/console": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
17-
"symfony/dependency-injection": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
18-
"symfony/http-kernel": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0"
16+
"symfony/config": "^4.4 || ^5.4 || ^6.0",
17+
"symfony/console": "^4.4 || ^5.4 || ^6.0",
18+
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
19+
"symfony/http-kernel": "^4.4 || ^5.4 || ^6.0"
1920
},
2021
"require-dev": {
2122
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
2223
"doctrine/phpcr-odm": "^1.4",
23-
"symfony/symfony": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
24+
"symfony/symfony": "^4.4 || ^5.4 || ^6.0",
2425
"symfony/monolog-bundle": "^2.0 || ^3.0",
25-
"symfony/phpunit-bridge": "^5.0.5",
26+
"symfony/phpunit-bridge": "^5.4 || ^6.0",
2627
"symfony-cmf/testing": "^2.1 || ^3.0 || ^4.0"
2728
},
2829
"conflict": {

travis.php.ini

-1
This file was deleted.

0 commit comments

Comments
 (0)