Skip to content

Add a mysql_session_timezone define to disable MySQL date functions #164

Add a mysql_session_timezone define to disable MySQL date functions

Add a mysql_session_timezone define to disable MySQL date functions #164

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_DATABASE: test
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgis/postgis:13-3.1
ports:
- 5432:5432
env:
POSTGRES_DB: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
haxe-version:
- 4.0.5
- 4.1.5
- stable
- nightly
target:
- node
- php
env:
# excluded CockroachDb here because it is hard to create a GitHub Actions service with command/entrypoint override
TEST_DB_TYPES: MySql,PostgreSql,Sqlite
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
if: ${{ matrix.target == 'php' }}
- run: php --version
if: ${{ matrix.target == 'php' }}
- run: npm i
- run: npm run test ${{ matrix.target }}