Skip to content

Commit

Permalink
no-issue - CI - test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMellerin committed Nov 24, 2023
1 parent 9eeddad commit 6c43788
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ on:
- .github/workflows/composer-checks.yml
- composer.*
- .php-cs-fixer.dist.php
- phpstan.neon.dist
- src/**
- tests/**
push:
branches:
- "main"
paths:
- .github/workflows/composer-checks.yml
- composer.*
- .php-cs-fixer.dist.php
- src/**
- tests/**

jobs:
php-cs-fixer:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
push:
branches:
- "main"
paths:
- .github/workflows/continuous-integration.yml
- composer.*
- phpunit.xml.dist
- src/**
- tests/**

env:
fail-fast: true
Expand All @@ -37,6 +43,7 @@ jobs:
- php-version: "8.1"
symfony-version: 5.4.*
postgres-version: "16"
extension: "pdo_pgsql"

services:
postgres:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ on:
paths:
- .github/workflows/composer-checks.yml
- composer.*
- .php-cs-fixer.dist.php
- phpstan.neon.dist
- src/**
- tests/**
push:
branches:
- "main"
paths:
- .github/workflows/composer-checks.yml
- composer.*
- phpstan.neon.dist
- src/**
- tests/**

jobs:
phpstan:
Expand Down
6 changes: 5 additions & 1 deletion tests/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\Kernel;

class TestKernel extends Kernel implements CompilerPassInterface
Expand All @@ -22,7 +23,10 @@ class TestKernel extends Kernel implements CompilerPassInterface
public function __construct(string $environment, bool $debug)
{
$this->testRootDir = sys_get_temp_dir().'/'.uniqid('db_tools_', true);
\mkdir($this->testRootDir . '/vendor', 777, true);
$filesystem = new Filesystem();

$filesystem->mkdir($this->testRootDir . '/vendor');
$filesystem->mkdir($this->testRootDir . '/var/cache');

parent::__construct($environment, $debug);
}
Expand Down

0 comments on commit 6c43788

Please sign in to comment.