mysql ssh image

This commit is contained in:
SPRINX0\prochazka
2025-01-02 14:11:07 +01:00
parent e5fb21daf6
commit 1ff2749c9b

View File

@@ -1,4 +1,5 @@
name: Run tests name: Run tests
on: on:
push: push:
branches: branches:
@@ -7,7 +8,30 @@ on:
- 'feature/**' - 'feature/**'
jobs: jobs:
test-runner: build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Build mysql-ssh image
run: |
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push image to GHCR
run: |
docker tag dbgate/mysql-ssh:latest ghcr.io/dbgate/mysql-ssh:latest
docker push ghcr.io/dbgate/mysql-ssh:latest
test:
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:18 container: node:18
@@ -16,50 +40,60 @@ jobs:
run: | run: |
apt-get update apt-get update
apt-get install -y xvfb libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 apt-get install -y xvfb libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1
- name: yarn install - name: yarn install
run: | run: |
yarn install yarn install
- name: Build packer dist for cypress - name: Build packer dist for cypress
run: | run: |
yarn prepare:packer yarn prepare:packer
- name: yarn install cypress - name: yarn install cypress
run: | run: |
cd e2e-tests cd e2e-tests
yarn install yarn install
- name: Run Cypress tests - name: Run Cypress tests
run: | run: |
cd e2e-tests cd e2e-tests
yarn test:ci yarn test:ci
- name: Integration tests - name: Integration tests
run: | run: |
cd integration-tests cd integration-tests
yarn test:ci yarn test:ci
# yarn wait:ci
- name: Filter parser tests - name: Filter parser tests
if: always() if: always()
run: | run: |
cd packages/filterparser cd packages/filterparser
yarn test:ci yarn test:ci
- name: Datalib (perspective) tests - name: Datalib (perspective) tests
if: always() if: always()
run: | run: |
cd packages/datalib cd packages/datalib
yarn test:ci yarn test:ci
- uses: tanmen/jest-reporter@v1 - uses: tanmen/jest-reporter@v1
if: always() if: always()
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-file: integration-tests/result.json result-file: integration-tests/result.json
action-name: Integration tests action-name: Integration tests
- uses: tanmen/jest-reporter@v1 - uses: tanmen/jest-reporter@v1
if: always() if: always()
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-file: packages/filterparser/result.json result-file: packages/filterparser/result.json
action-name: Filter parser test results action-name: Filter parser test results
- uses: tanmen/jest-reporter@v1 - uses: tanmen/jest-reporter@v1
if: always() if: always()
with: with:
@@ -68,8 +102,7 @@ jobs:
action-name: Datalib (perspectives) test results action-name: Datalib (perspectives) test results
services: services:
postgres: image: postgres
image: postgres
env: env:
POSTGRES_PASSWORD: Pwd2020Db POSTGRES_PASSWORD: Pwd2020Db
options: >- options: >-
@@ -99,10 +132,7 @@ jobs:
image: gvenzl/oracle-xe:21-slim image: gvenzl/oracle-xe:21-slim
env: env:
ORACLE_PASSWORD: Pwd2020Db ORACLE_PASSWORD: Pwd2020Db
mysql-ssh: mysql-ssh:
build: ../../e2e-tests/mysql-ssh image: ghcr.io/dbgate/mysql-ssh:latest
# cockroachdb:
# image: cockroachdb/cockroach