-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
59 lines (55 loc) · 1.74 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'Database Lab: realistic DB testing in CI'
branding:
icon: 'database'
color: 'orange'
description: 'Test DB migrations using DB branches provided by Database Lab Engine (DLE)'
inputs:
commands:
description: 'List of commands to run DB migrations'
required: true
dbname:
description: 'The database that the workflow is running with'
required: false
default: ""
migration_envs:
description: 'List of environment variables that will be set during migrations running'
required: false
download_artifacts:
description: 'Option to download artifacts'
required: false
default: "false"
observation_interval:
description: 'Observation interval'
required: false
default: "10"
max_lock_duration:
description: 'Max lock duration'
required: false
default: "10"
max_duration:
description: 'Max duration'
required: false
default: "3600"
outputs:
response:
value: Done
description: 'The result of migration checks'
runs:
using: 'composite'
steps:
- name: DB migration with DLE
uses: postgres-ai/dle-github-actions/core@master
with:
commands: ${{ inputs.commands }}
dbname: ${{ inputs.dbname }}
migration_envs: ${{ inputs.migration_envs }}
download_artifacts: ${{ inputs.download_artifacts }}
observation_interval: ${{ inputs.observation_interval }}
max_lock_duration: ${{ inputs.max_lock_duration }}
max_duration: ${{ inputs.max_duration }}
- name: Post comment to PR
if: ${{ always() && github.event_name == 'pull_request' }}
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.pull_request.number }}
body-file: 'artifacts/report.md'