Skip to content

add rename column

add rename column #101

Workflow file for this run

name: CI
on: push
jobs:
build:
name: 'Unit Test and Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Build
run: npm run build
- name: Run sync-database-models command
id: sync
run: npm exec sync-database-models
- name: Run tests
run: npm test
test_postgre:
name: 'Postgres Connection'
runs-on: ubuntu-latest
needs: build
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: 123456
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Run tests
env:
CONNECTION_TYPE: postgres
POSTGRES_HOST: localhost
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_PORT: 5432
run: npm run test:connection
test_mysql:
name: 'MySQL Connection'
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
version: ['5.7', '8.0']
services:
mysql:
image: mysql:${{ matrix.version }}
env:
MYSQL_DATABASE: testdb
MYSQL_ROOT_PASSWORD: 123456
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Run tests
env:
CONNECTION_TYPE: mysql
MYSQL_HOST: localhost
MYSQL_DB: testdb
MYSQL_USER: root
MYSQL_PASSWORD: 123456
MYSQL_PORT: 3306
run: npm run test:connection