Skip to content

Commit

Permalink
ci: update firebird installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Jan 25, 2025
1 parent 189297f commit aefdfac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

- name: Install Firebird
run: |
sudo bash -c 'echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" > /etc/apt/sources.list.d/ubuntu-focal-sources.list'
sudo apt-get update
sudo apt-get install libtommath1 libtomcrypt1 libncurses5 musl-dev gcc build-essential
sudo ln -sf /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0
sudo ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
Expand All @@ -35,6 +37,7 @@ jobs:
sudo chown root:firebird /opt/firebird/SYSDBA.password
sudo chmod 440 /opt/firebird/SYSDBA.password
sudo chown -R firebird:firebird .
sudo cat /opt/firebird/SYSDBA.password
while ! nc -z localhost 3050; do sleep 1 ; done
sleep 2
Expand All @@ -44,5 +47,5 @@ jobs:
sudo chown -R firebird:firebird coverage
sudo chmod -R 777 coverage
npm install -g env-cmd
sg firebird -c "LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password npm run test"
sudo runuser -u firebird -- bash -c "LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password npm run test"
bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import path from "path";
import os from "os";
import * as fs from "fs";

console.info(process.env)

const generateConfig = () => ({
client,
connection: {
Expand Down

0 comments on commit aefdfac

Please sign in to comment.