mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-13 11:09:10 -05:00
/{.github/, MySQLDockerfile}: Add private actions for mysql client integration tests
This commit is contained in:
@@ -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'
|
||||
|
||||
6
.github/workflows/ci-mysql-client-tests.yaml
vendored
6
.github/workflows/ci-mysql-client-tests.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user