File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 90
90
- name : Install dependencies
91
91
run : npm install
92
92
93
+ - name : Debug - Check MariaDB connection
94
+ shell : bash
95
+ run : |
96
+ echo "=== Network and Port Information ==="
97
+ echo "Checking if MariaDB port is accessible..."
98
+ netstat -tuln | grep :3306 || echo "Port 3306 not found in netstat"
99
+ echo ""
100
+ echo "Testing connection to mariadb.example.com:3306..."
101
+ timeout 10 bash -c 'cat < /dev/null > /dev/tcp/mariadb.example.com/3306' && echo "✅ Connection successful" || echo "❌ Connection failed"
102
+ echo ""
103
+ echo "Testing connection to 127.0.0.1:3306..."
104
+ timeout 10 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/3306' && echo "✅ Connection successful" || echo "❌ Connection failed"
105
+ echo ""
106
+ echo "=== Environment Variables ==="
107
+ echo "TEST_DB_HOST: $TEST_DB_HOST"
108
+ echo "TEST_DB_PORT: $TEST_DB_PORT"
109
+ echo "TEST_DB_USER: $TEST_DB_USER"
110
+ echo "LOCAL_DB: $LOCAL_DB"
111
+ echo "DB_TYPE: $DB_TYPE"
112
+ env :
113
+ TEST_DB_HOST : ${{ env.TEST_DB_HOST }}
114
+ TEST_DB_PORT : ${{ env.TEST_DB_PORT }}
115
+ TEST_DB_USER : ${{ env.TEST_DB_USER }}
116
+ LOCAL_DB : ${{ steps.mariadb-install.outputs.database-type }}
117
+ DB_TYPE : ${{ matrix.db-type }}
118
+
93
119
- name : Run Tests
94
120
run : npm run coverage:test
95
121
env :
You can’t perform that action at this time.
0 commit comments