mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 17:53:59 +00:00
fix
This commit is contained in:
25
.github/workflows/run-tests.yaml
vendored
25
.github/workflows/run-tests.yaml
vendored
@@ -9,7 +9,26 @@ name: Run tests
|
|||||||
- develop
|
- develop
|
||||||
- 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'
|
||||||
steps:
|
steps:
|
||||||
@@ -17,7 +36,7 @@ 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
|
||||||
@@ -91,4 +110,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
mysql-ssh:
|
mysql-ssh:
|
||||||
build: ../../e2e-tests/mysql-ssh
|
image: 'ghcr.io/dbgate/mysql-ssh:latest'
|
||||||
|
|||||||
@@ -102,7 +102,8 @@ jobs:
|
|||||||
action-name: Datalib (perspectives) test results
|
action-name: Datalib (perspectives) test results
|
||||||
|
|
||||||
services:
|
services:
|
||||||
image: postgres
|
postgres:
|
||||||
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: Pwd2020Db
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
options: >-
|
options: >-
|
||||||
|
|||||||
Reference in New Issue
Block a user