Skip to content

Merge pull request #294 from Tomas2D/dependabot/npm_and_yarn/babel/co… #788

Merge pull request #294 from Tomas2D/dependabot/npm_and_yarn/babel/co…

Merge pull request #294 from Tomas2D/dependabot/npm_and_yarn/babel/co… #788

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: borales/actions-yarn@v3
with:
cmd: install --production=false
- name: Build
uses: borales/actions-yarn@v3
with:
cmd: build
- name: Install Firebird
run: |
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 .
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)