Merge pull request #402 from Tomas2D/dependabot/npm_and_yarn/babel/pl… #1011
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 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 | |
npm install -g env-cmd | |
sg firebird -c "LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password npm run test" | |
bash <(curl -s https://codecov.io/bash) |