ci: update firebird installation #1049
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- 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 | |
wget -nv -O Firebird-4.0.2.2816-0.amd64.tar.gz "https://github.com/FirebirdSQL/firebird/releases/download/v4.0.2/Firebird-4.0.2.2816-0.amd64.tar.gz" | |
tar xzvf Firebird-4.0.2.2816-0.amd64.tar.gz | |
(cd Firebird-4.0.2.2816-0.amd64; sudo ./install.sh -silent) | |
sudo usermod -a -G firebird `whoami` | |
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 | |
- name: Tests | |
run: | | |
sudo mkdir coverage | |
sudo chown -R firebird:firebird coverage | |
sudo chmod -R 777 coverage | |
npm install -g env-cmd | |
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) |