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 f4ac2b3 commit eb41060
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

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

- name: huh?
run: cat healthcheck.sh

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

Expand All @@ -76,6 +70,8 @@ jobs:
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: sfa
MYSQL_USER: sfa
MYSQL_PASSWORD: sfa
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -84,12 +80,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: HUH?
run: mysql -h 127.0.0.1 -e 'select 1+3;'

- name: HUH?HUH
run: mysql -e 'select 1+3;'

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

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 @@ -17,9 +17,9 @@ protected function setUp(): void
{
parent::setUp();

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

$this->pdo = new PDO($dsn, options: [
$this->pdo = new PDO($dsn, 'sfa', 'sfa', [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
]);
Expand Down

0 comments on commit eb41060

Please sign in to comment.