Skip to content

Commit

Permalink
chore: add a sleep on docker compose up to let mariadb create the req…
Browse files Browse the repository at this point in the history
…uired files in Github actions
  • Loading branch information
johnkrovitch committed Nov 4, 2024
1 parent 7cc61b7 commit 0711f41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: yarn run encore production

- name: Run docker compose
run: docker compose up -d db
run: docker compose up -d db && sleep 10 && docker compose logs db

- name: Run phpunit
run: bin/phpunit -c phpunit.xml.dist
Expand All @@ -56,3 +56,6 @@ jobs:

- name: Run var_dump checker
run: bin/var-dump-check --symfony src tests

- name: Stop docker compose
run: docker compose down
2 changes: 1 addition & 1 deletion tests/phpunit/Resource/Resolver/ResourceResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function itResolveResources(): void
->expects(self::once())
->method('locateProperties')
->willReturnMap([
[$bookClass, []]
[$bookClass, []],
])
;

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ protected static function getApplicationPath(): string
{
return __DIR__.'/../app';
}
}
}

0 comments on commit 0711f41

Please sign in to comment.