mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Workflow - Testing MySQL Connection
This commit is contained in:
parent
b0b04f0af7
commit
fcf13792ef
2
.env.ci
2
.env.ci
@ -9,7 +9,7 @@ LOG_DEPRECATIONS_CHANNEL=null
|
|||||||
LOG_LEVEL=emergency
|
LOG_LEVEL=emergency
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=mysql
|
||||||
DB_HOST=mysql
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=33306
|
DB_PORT=33306
|
||||||
DB_DATABASE=testing
|
DB_DATABASE=testing
|
||||||
DB_USERNAME=user
|
DB_USERNAME=user
|
||||||
|
10
.github/workflows/general.yaml
vendored
10
.github/workflows/general.yaml
vendored
@ -110,19 +110,9 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 33306:3306
|
- 33306:3306
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
env:
|
|
||||||
DB_DATABASE: testing
|
|
||||||
DB_PORT: 33306
|
|
||||||
DB_USERNAME: user
|
|
||||||
DB_PASSWORD: password
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Verify MySQL Connection
|
|
||||||
run: |
|
|
||||||
mysql --version
|
|
||||||
sudo apt-get install -y mysql-client
|
|
||||||
mysql --host 127.0.0.1 --port 33306 -uuser -ppassword -e "SHOW DATABASES"
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user