-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
47 lines (44 loc) · 1.21 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
name: 'Airflow DAGs Test'
author: micael-grilo
description: 'Validate and test Airflow DAGs on your workflows.'
branding:
icon: check
color: gray-dark
inputs:
requirements-file:
description: 'Path to requirements file that airflow use to run the DAG files.'
required: true
default: "requirements.txt"
dags-path:
description: 'Path to DAGs directory'
required: true
default: "dags"
dags-test-folder:
description: 'Path to tests directory'
required: true
default: ""
var-file:
description: 'Path to `var.json` to set your airflow variables, by default uses GitHub secrets.'
required: false
default: ""
error-comment:
description: 'Comment error message on PR'
required: false
default: "False"
access-token:
description: 'Repo access token'
required: true
outputs:
validator-result:
description: 'DAGs tests result'
value: ${{ steps.run }}
runs:
using: 'docker'
image: 'docker://ghcr.io/micael-grilo/airflow-dags-test-action:v2.10.1'
args:
- ${{ inputs.requirements-file }}
- ${{ inputs.dags-path }}
- ${{ inputs.dags-test-folder }}
- ${{ inputs.var-file }}
- ${{ inputs.error-comment }}
- ${{ inputs.access-token }}