Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Oct 9, 2023
1 parent fbb52d2 commit 6f2801c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 25 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: "Check Coding Standard"

on:
pull_request:
branches-ignore:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
push:
branches:
- "[0-9]+.[0-9]+.x"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: "Mutation tests"

on:
pull_request:
branches-ignore:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
push:
branches:
- "[0-9]+.[0-9]+.x"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: "Static Analysis by PHPStan"

on:
pull_request:
branches-ignore:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
push:
branches:
- "[0-9]+.[0-9]+.x"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: "Static Analysis by Psalm"

on:
pull_request:
branches-ignore:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
push:
branches:
- "[0-9]+.[0-9]+.x"
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
name: "Unit tests"

on:
pull_request:
branches-ignore:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
push:
branches:
- "[0-9]+.[0-9]+.x"
- "renovate/*"
pull_request:
push:
branches:
- "[0-9]+.[0-9]+.x"
- "renovate/*"

jobs:
phpunit:
Expand Down
13 changes: 8 additions & 5 deletions tests/Benchmark/HydratorBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ final class HydratorBench
{
private Hydrator $hydrator;

public function setUp(): void
public function __construct()
{
$this->hydrator = new MetadataHydrator();
}

public function setUp(): void
{
$object = $this->hydrator->hydrate(ProfileCreated::class, [
'profileId' => '1',
'name' => 'foo',
Expand All @@ -45,7 +48,7 @@ public function benchExtract1Object(): void
}

#[Bench\Revs(10)]
public function benchHydrate1_000Objects(): void
public function benchHydrate1000Objects(): void
{
for ($i = 0; $i < 1_000; $i++) {
$this->hydrator->hydrate(ProfileCreated::class, [
Expand All @@ -56,7 +59,7 @@ public function benchHydrate1_000Objects(): void
}

#[Bench\Revs(10)]
public function benchExtract1_000Objects(): void
public function benchExtract1000Objects(): void
{
$object = new ProfileCreated(ProfileId::fromString('1'), 'foo');

Expand All @@ -66,7 +69,7 @@ public function benchExtract1_000Objects(): void
}

#[Bench\Revs(10)]
public function benchHydrate1_000_000Objects(): void
public function benchHydrate1000000Objects(): void
{
for ($i = 0; $i < 1_000_000; $i++) {
$this->hydrator->hydrate(ProfileCreated::class, [
Expand All @@ -77,7 +80,7 @@ public function benchHydrate1_000_000Objects(): void
}

#[Bench\Revs(10)]
public function benchExtract1_000_000Objects(): void
public function benchExtract1000000Objects(): void
{
$object = new ProfileCreated(ProfileId::fromString('1'), 'foo');

Expand Down

0 comments on commit 6f2801c

Please sign in to comment.