dbgate/.github/workflows/integration-tests.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2021-05-27 09:28:20 +00:00
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
2021-05-27 13:51:54 +00:00
yarn wait:ci
2021-05-27 13:13:14 +00:00
yarn test:ci
2021-05-27 09:28:20 +00:00
services:
postgres:
image: postgres
2021-05-27 10:04:13 +00:00
env:
2021-05-27 09:28:20 +00:00
POSTGRES_PASSWORD: Pwd2020Db
2021-05-27 10:44:11 +00:00
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
2021-05-27 09:28:20 +00:00
2021-05-27 13:51:54 +00:00
mysql:
2021-05-27 13:59:57 +00:00
image: mysql:8.0.18
2021-05-27 13:51:54 +00:00
env:
MYSQL_ROOT_PASSWORD: Pwd2020Db
2021-05-27 09:28:20 +00:00
2021-05-27 11:07:58 +00:00
mssql:
image: mcr.microsoft.com/mssql/server
env:
ACCEPT_EULA: Y
SA_PASSWORD: Pwd2020Db
MSSQL_PID: Express
2021-05-27 09:28:20 +00:00
2021-05-27 13:13:14 +00:00
# cockroachdb:
# image: cockroachdb/cockroach