Files
dbgate/.github/workflows/integration-tests.yaml
2021-05-27 13:07:58 +02:00

65 lines
1.4 KiB
YAML

name: Integration tests
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
container: node:10.18-jessie
steps:
- name: Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: yarn install
run: |
yarn install
- name: Run tests
run: |
cd integration-tests
yarn test
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: Pwd2020Db
# ports:
# - 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql
# options: >-
# --default-authentication-plugin=mysql_native_password
# ports:
# - 15001:3306
env:
MYSQL_ROOT_PASSWORD: Pwd2020Db
mssql:
image: mcr.microsoft.com/mssql/server
# ports:
# - 15002:1433
env:
ACCEPT_EULA: Y
SA_PASSWORD: Pwd2020Db
MSSQL_PID: Express
cockroachdb:
image: cockroachdb/cockroach
# ports:
# - 15003:26257
# options: >-
# start-single-node --insecure