-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 923 Bytes
/
action.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
name: Action test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
run_action:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.6
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: development
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 7432:5432
steps:
- uses: actions/checkout@v4.1.0
- name: Generate test migrations
run: bash scripts/test-migrations.sh
- name: Test action
uses: ./
with:
migrations_folder: "./migrations"
wait_timeout: "30"
migrations_table: "schema_migrations"
database_url: "postgresql://postgres:postgres@localhost:7432/development?sslmode=disable"