This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
55 lines (55 loc) · 1.41 KB
/
test.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
50
51
52
53
54
55
name: Test
on:
- push
jobs:
test-postgres:
strategy:
matrix:
version: [10, 11, 12, 13, 14]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.version }}
env:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: ./
with:
url: jdbc:postgresql://postgres:5432/db
user: user
password: password
locations: filesystem:.github/workflows/sql
- run: echo 'testing'
test-mysql:
runs-on: ubuntu-latest
services:
mysql:
image: bitnami/mysql:8.0
env:
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 10s
--health-retries 10
steps:
- uses: actions/checkout@v3
- uses: ./
with:
url: jdbc:mysql://mysql:3306/db
user: user
password: password
locations: filesystem:.github/workflows/sql
- run: echo 'testing'