forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
126 lines (98 loc) · 3.08 KB
/
validations.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: validations
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CHANGED: ${{ github.event_name == 'pull_request' && 'changed' || '' }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Upgrade Python packaging tools
run: pip install --disable-pip-version-check --upgrade pip setuptools wheel
- name: Install ddev
run: |
pip install -e ./datadog_checks_dev[cli]
pip install -e ./ddev
- name: Configure ddev
run: |
ddev config set repos.core .
ddev config set repo core
ddev config set orgs.ci.dd_url "https://app.datadoghq.com"
ddev config set org ci
- name: Run agent requirements validation
run: |
ddev validate agent-reqs $CHANGED
- name: Run CI validation
run: |
ddev validate ci
- name: Run configuration validation
run: |
ddev validate config $CHANGED
- name: Run dashboard validation
run: |
ddev validate dashboards $CHANGED
- name: Run dependency validation
run: |
ddev validate dep
- name: Run HTTP wrapper validation
run: |
ddev validate http $CHANGED
- name: Run imports validation
run: |
ddev validate imports $CHANGED
- name: Run integration style and best practices validation
run: |
ddev validate integration-style $CHANGED --verbose
- name: Run JMX metrics validation
run: |
ddev validate jmx-metrics $CHANGED
- name: Run legacy signature validation
run: |
ddev validate legacy-signature $CHANGED
- name: Run licenses validation
run: |
ddev validate licenses
- name: Run manifest validation
run: |
ddev validate manifest $CHANGED
- name: Run metadata validation
run: |
ddev validate metadata $CHANGED
- name: Run models validation
run: |
ddev validate models $CHANGED
- name: Run package validation
run: |
ddev validate package $CHANGED
- name: Run readmes validation
run: |
ddev validate readmes $CHANGED
- name: Run recommended monitors validation
run: |
ddev validate recommended-monitors $CHANGED
- name: Run saved views validation
run: |
ddev validate saved-views $CHANGED
- name: Run service checks validation
run: |
ddev validate service-checks $CHANGED
- name: Comment PR on failure
if: ${{ failure() && github.event.pull_request.merged != true }}
uses: actions/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: "The `validations` job has failed; please review the `Files changed` tab for possible suggestions to resolve." });