Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from dantleech/feature/github-ci
Browse files Browse the repository at this point in the history
Move CI from Travis to Github
  • Loading branch information
dantleech committed May 2, 2022
2 parents 50d80ae + b98e6e8 commit 0cb7865
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 97 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
pull_request:
push:
branches:
- 'master'

jobs:
php:
name: "PHP ${{ matrix.php-version }}"
runs-on: ubuntu-latest

env:
KERNEL_CLASS: DTL\Bundle\PhpcrMigrations\Tests\Resources\App\AppKernel

strategy:
fail-fast: false
matrix:
include:
- php-version: '7.2'
symfony-version: '^4.4'
monolog-version: '^1.0'

- php-version: '7.3'
symfony-version: '^5.4'
monolog-version: '^1.0'

- php-version: '7.4'
symfony-version: '^5.4'
monolog-version: '^2.0'

- php-version: '8.0'
symfony-version: '6.0.*'
monolog-version: '^2.0'

- php-version: '8.1'
symfony-version: '^6.0'
monolog-version: '^2.0'

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Install and configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ctype, iconv, mysql
tools: composer:v2
ini-values: memory_limit=-1
coverage: none

- name: Add additional packages
run: |
composer require monolog/monolog:${{ matrix.monolog-version }} --no-update
composer require symfony/symfony:${{ matrix.symfony-version }} --no-update
- name: Install composer dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{matrix.dependency-versions}}

- name: Prepare phpcr odm doctrine dbal
run: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh

- name: Run tests
run: vendor/bin/simple-phpunit
89 changes: 0 additions & 89 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
-----

- Support Symfony 6
- Drop Support for PHP <= 7.1 and Symfony <= 4.3

1.2.0
-----
Expand Down
2 changes: 1 addition & 1 deletion Tests/Resources/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function prepareContainer(ContainerBuilder $container)
$container->setParameter('cmf_testing.bundle_fqn', 'DTL\Bundle\PhpcrMigrations\PhpcrMigrationsBundle');
}

protected function getKernelParameters()
protected function getKernelParameters(): array
{
$kernelParameters = parent::getKernelParameters();
$kernelParameters['kernel.root_dir'] = $this->getKernelDir();
Expand Down
3 changes: 3 additions & 0 deletions Tests/Resources/App/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
phpcr_migrations:
version_node_name: "jcr:migrations"

framework:
annotations: true
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"phpcr/phpcr-migrations": "^1.1",
"phpcr/phpcr-implementation": "^2.1",
"doctrine/phpcr-bundle": "^1.3 || ^2.0",
"symfony/config": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
"symfony/console": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
"symfony/http-kernel": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0"
"symfony/config": "^4.4 || ^5.4 || ^6.0",
"symfony/console": "^4.4 || ^5.4 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.4 || ^6.0"
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
"doctrine/phpcr-odm": "^1.4",
"symfony/symfony": "^2.8 || ^3.4 || ^4.0 || ^5.0 || ^6.0",
"symfony/symfony": "^4.4 || ^5.4 || ^6.0",
"symfony/monolog-bundle": "^2.0 || ^3.0",
"symfony/phpunit-bridge": "^5.0.5",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"symfony-cmf/testing": "^2.1 || ^3.0 || ^4.0"
},
"conflict": {
Expand Down
1 change: 0 additions & 1 deletion travis.php.ini

This file was deleted.

0 comments on commit 0cb7865

Please sign in to comment.