/{.github/, MySQLDockerfile}: Add private actions for mysql client integration tests

This commit is contained in:
Dustin Brown
2020-08-27 16:19:44 -07:00
parent 2d4918ed96
commit 12f2857623
5 changed files with 6 additions and 28 deletions

View File

@@ -1,8 +1,5 @@
name: 'Dolt MySQL client integration tests'
description: 'Smoke tests for mysql client integrations'
outputs:
results: # logged test results output
description: 'The results of the tests'
runs:
using: 'docker'
image: '../../../MySQLDockerfile'

View File

@@ -1,4 +1,6 @@
on: [push]
name: Test MySQL Client integrations
on: [pull_request]
jobs:
mysql_client_integrations_job:
@@ -8,4 +10,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Test mysql client integrations
uses: ./.github/actions/mysql-client-tests # Uses an action in the root directory
uses: ./.github/actions/mysql-client-tests

View File

@@ -1,13 +0,0 @@
# Dolt MySQL client integration docker action
This action runs ./mysql-client-tests in docker.
## Outputs
### `results`
The results of the tests.
## Example usage
uses: actions/mysql-client-test-action@v1

View File

@@ -60,19 +60,9 @@ RUN apt -y install nodejs
RUN apt-get -y update
RUN apt-get -y install bats
RUN dolt version
# setup dolt config
#RUN dolt config --global --add metrics.disabled true
#RUN dolt config --global --add metrics.host localhost
#RUN dolt config --global --add user.name mysql-test-runner
#RUN dolt config --global --add user.email mysql-test-runner@liquidata.co
# install node deps
WORKDIR /mysql-client-tests/node
RUN npm install
# run tests
WORKDIR /mysql-client-tests
#CMD ["bats", "mysql-client-tests.bats"]
ENTRYPOINT ["/mysql-client-tests/entrypoint.sh"]

View File

@@ -1,8 +1,10 @@
#!/bin/sh
echo "updating dolt config for tests:"
dolt config --global --add metrics.disabled true
dolt config --global --add metrics.host localhost
dolt config --global --add user.name mysql-test-runner
dolt config --global --add user.email mysql-test-runner@liquidata.co
echo "Running mysql-client-tests:"
bats /mysql-client-tests/mysql-client-tests.bats