Skip to content

Commit

Permalink
Keep debugging the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tontonsb committed May 27, 2024
1 parent eb41060 commit 9be3bca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,18 @@ jobs:
MARIADB_PASSWORD: sfa
ports:
- 3306:3306
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: HUH?
run: mysql -u sfa -p sfa -h localhost -P 3307 -D sfa -e 'select 1+3;'

- name: huh?
run: cat healthcheck.sh

- name: Install dependencies
uses: ramsey/composer-install@v2

Expand Down
6 changes: 3 additions & 3 deletions tests/Integration/MariaDB/PDOTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function setUp(): void
{
parent::setUp();

$dsn = "mysql:host=localhost;port=3307;dbname=sfa;";
$dsn = "mysql:host=127.0.0.1;port=3306;dbname=sfa;";

$this->pdo = new PDO($dsn, 'sfa', 'sfa', options: [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
Expand All @@ -42,8 +42,8 @@ public function testComplexActions(): void
{
// Let's try various APIs
$points = [
Sfc::makePoint(0, 0),
new Point('ST_MakePoint(?, ?)', [0, 10]),
Sfc::point(0, 0),
new Point('POINT(?, ?)', [0, 10]),
new Geometry("'POINT(5 5)'::geometry"),
];

Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/MySQL/PDOTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function testComplexActions(): void
{
// Let's try various APIs
$points = [
Sfc::makePoint(0, 0),
new Point('ST_MakePoint(?, ?)', [0, 10]),
Sfc::point(0, 0),
new Point('POINT(?, ?)', [0, 10]),
new Geometry("'POINT(5 5)'::geometry"),
];

Expand Down

0 comments on commit 9be3bca

Please sign in to comment.