@@ -17,13 +17,46 @@ jobs:
1717 fetch-depth : 10
1818
1919 - name : Setup FirebirdSQL container
20- uses : juarezr/firebirdsql-github-action@v2.0.1
21- with :
22- version : ${{ matrix.firebird-version }}
23- firebird_root_password : " masterkey"
24- env :
25- FIREBIRD_CONF_WireCrypt : " Enabled"
26- FIREBIRD_CONF_AuthServer : " Legacy_Auth, Srp, Win_Sspi"
20+ run : |
21+ # Create data directory
22+ sudo mkdir -p /firebird/data
23+ sudo chmod 755 /firebird/data
24+
25+ # Start Firebird container
26+ docker run -d \
27+ --name firebird \
28+ -e FIREBIRD_ROOT_PASSWORD="masterkey" \
29+ -e FIREBIRD_CONF_WireCrypt="Enabled" \
30+ -e FIREBIRD_CONF_AuthServer="Legacy_Auth, Srp, Win_Sspi" \
31+ -p 3050:3050 \
32+ -v /firebird/data:/firebird/data \
33+ firebirdsql/firebird:3
34+
35+ # Wait for Firebird to be ready
36+ MAX_RETRIES=30
37+ RETRY_INTERVAL=2
38+ echo "Waiting for Firebird to start..."
39+ FIREBIRD_READY=false
40+ for i in $(seq 1 $MAX_RETRIES); do
41+ if docker exec firebird /opt/firebird/bin/isql -user SYSDBA -password masterkey -z 2>&1 | grep -q "ISQL Version"; then
42+ echo "Firebird is ready!"
43+ FIREBIRD_READY=true
44+ break
45+ fi
46+ echo "Waiting... ($i/$MAX_RETRIES)"
47+ sleep $RETRY_INTERVAL
48+ done
49+
50+ if [ "$FIREBIRD_READY" = false ]; then
51+ echo "ERROR: Firebird failed to start within the timeout period"
52+ docker ps -a
53+ docker logs firebird
54+ exit 1
55+ fi
56+
57+ # Verify Firebird is running
58+ docker ps -a
59+ docker logs firebird
2760
2861 - name : Use Node.js ${{ matrix.node }}
2962 uses : actions/setup-node@v3
0 commit comments