π Fix driver name #674
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: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: borales/actions-yarn@v3 | |
with: | |
cmd: install --frozen-lockfile | |
- name: Build | |
uses: borales/actions-yarn@v3 | |
with: | |
cmd: build | |
- name: Install Firebird | |
run: | | |
sudo apt-get install libtommath1 libncurses5 musl-dev gcc | |
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-3.0.10.33601-0.amd64.tar.gz "https://github.com/FirebirdSQL/firebird/releases/download/v3.0.10/Firebird-3.0.10.33601-0.amd64.tar.gz" | |
tar xzvf Firebird-3.0.10.33601-0.amd64.tar.gz | |
(cd Firebird-3.0.10.33601-0.amd64; sudo ./install.sh -silent) | |
sudo usermod -a -G firebird `whoami` | |
echo 'WireCrypt = Enabled' | sudo tee -a /opt/firebird/firebird.conf > /dev/null | |
sudo killall firebird | |
sudo systemctl start firebird-superserver.service | |
sudo chown root:firebird /opt/firebird/SYSDBA.password | |
sudo chmod 440 /opt/firebird/SYSDBA.password | |
sudo chown -R firebird:firebird . | |
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 | |
sg firebird -c "yarn global add env-cmd; LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password yarn test" | |
bash <(curl -s https://codecov.io/bash) |