From 5fca73d531b2efca0087c6d0687a0a09e31c3007 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 27 May 2021 11:28:20 +0200 Subject: [PATCH] integration tests on push to master --- .github/workflows/integration-tests.yaml | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/integration-tests.yaml diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml new file mode 100644 index 000000000..87500ad23 --- /dev/null +++ b/.github/workflows/integration-tests.yaml @@ -0,0 +1,61 @@ +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 run:all + + services: + postgres: + image: postgres + restart: always + environment: + POSTGRES_PASSWORD: Pwd2020Db + ports: + - 15000:5432 + + mysql: + image: mysql + command: --default-authentication-plugin=mysql_native_password + restart: always + ports: + - 15001:3306 + environment: + - MYSQL_ROOT_PASSWORD=Pwd2020Db + + mssql: + image: mcr.microsoft.com/mssql/server + restart: always + ports: + - 15002:1433 + environment: + - ACCEPT_EULA=Y + - SA_PASSWORD=Pwd2020Db + - MSSQL_PID=Express + + cockroachdb: + image: cockroachdb/cockroach + ports: + - 15003:26257 + command: start-single-node --insecure +