Skip to content

Commit

Permalink
Merge pull request #19 from MacPaw/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
IiiigorGG authored Jan 16, 2023
2 parents f8f8a53 + ac0ac10 commit 94fd19e
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 73 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ jobs:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
coverage: ['none']
symfony-versions:
- '4.4.*'
- '5.4.*'
- '6.0.*'
- '6.1.*'
- '6.2.*'
include:
- description: 'Log Code Coverage'
php: '8.1'
Expand Down Expand Up @@ -51,6 +56,13 @@ jobs:
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer

- name: Update Symfony version
if: matrix.symfony-versions != ''
run: |
composer require symfony/dependency-injection:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require symfony/http-kernel:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require --dev symfony/console:${{ matrix.symfony-versions }} --no-update --no-scripts
- name: Install dependencies
run: composer install

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/gitleaks.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions commitlint.config.js

This file was deleted.

6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"phpunit/phpunit": "^9.5",
"slevomat/coding-standard": "^7.0",
"squizlabs/php_codesniffer": "^3.6",
"sensio/framework-extra-bundle": "^4.4 || ^5.4 || ^6.0",
"symfony/console": "^4.4 || ^5.4 || ^6.0"
},
"autoload": {
Expand All @@ -67,5 +66,10 @@
"@phpunit",
"@code-style"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
22 changes: 0 additions & 22 deletions package.json

This file was deleted.

5 changes: 5 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<php>
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
</php>
<testsuites>
<testsuite name="Behat Doctrine Fixtures Test Suite">
<directory>tests</directory>
Expand Down
11 changes: 0 additions & 11 deletions tests/Functional/App/Entity/BaseEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,8 @@

namespace BehatDoctrineFixtures\Tests\Functional\App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Entity()
*
* @ORM\Table(name="base_entity")
*/
class BaseEntity
{
/**
* @ORM\Id()
* @ORM\Column(type="integer")
*/
private int $id;

public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace DoctrineMigrations;
namespace BehatDoctrineFixtures\Tests\Functional\App\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
Expand Down
2 changes: 0 additions & 2 deletions tests/Functional/App/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function registerBundles(): iterable
new \Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle(),
new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle(),
new \BehatDoctrineFixtures\BehatDoctrineFixturesBundle(),
new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle()
];

return $bundles;
Expand All @@ -31,7 +30,6 @@ public function registerBundles(): iterable
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__ . '/config/doctrine.yml');
$loader->load(__DIR__ . '/config/sensio_framework_extra.yml');
$loader->load(__DIR__ . '/config/doctrine_migrations.yml');
$loader->load(__DIR__ . '/config/behat_doctrine_fixtures.yml');
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/App/config/doctrine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ doctrine:
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/Entity'
type: yml
dir: '%kernel.project_dir%/config/doctrine_entity'
prefix: 'BehatDoctrineFixtures\Tests\Functional\App\Entity'
alias: App
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BehatDoctrineFixtures\Tests\Functional\App\Entity\BaseEntity:
type: entity
table: base_entity
id:
id:
type: integer

0 comments on commit 94fd19e

Please sign in to comment.