-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (47 loc) · 1.31 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 }}