-
Notifications
You must be signed in to change notification settings - Fork 43
43 lines (31 loc) · 1.2 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
env:
LD_LIBRARY_PATH: /opt/oracle/instantclient_21_1
steps:
- uses: actions/checkout@v2
- name: Install Oracle client
run: |
sudo apt install unzip
wget -q https://download.oracle.com/otn_software/linux/instantclient/211000/instantclient-basiclite-linux.x64-21.1.0.0.0.zip
sudo mkdir -p /opt/oracle
sudo unzip -qo instantclient-basiclite-linux.x64-21.1.0.0.0.zip -d /opt/oracle
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: docker-compose up -d
- run: npm ci
- run: "while ! docker-compose logs mysql | grep -q 'mysqld: ready for connections.'; do sleep 2; done"
- run: "while ! docker-compose logs postgres | grep -q 'database system is ready to accept connections'; do sleep 2; done"
- run: "while ! docker-compose logs mssql | grep -q 'SQL Server is now ready for client connections'; do sleep 2; done"
- run: npm test