Skip to content

Commit d87c2bb

Browse files
author
Sohan Yadav
authored
Merge pull request #1 from clouddrove/PR-1
lint apply
2 parents 3d5cbe0 + d591825 commit d87c2bb

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.github/workflows/lint.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Lint
3+
'on':
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
11+
test:
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out the codebase.
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python 3.7.
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install test dependencies.
25+
run: pip3 install yamllint ansible-lint
26+
27+
- name: Run yamllint.
28+
run: yamllint .
29+
30+
- name: Run ansible-lint.
31+
run: ansible-lint
32+
33+
34+
- name: 'Slack Notification'
35+
uses: clouddrove/action-slack@v2
36+
with:
37+
status: ${{ job.status }}
38+
fields: repo,author
39+
author_name: 'Clouddrove'
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
43+
if: always()

.yamllint

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length:
6+
max: 400
7+
level: warning
8+
truthy:
9+
allowed-values: ['true', 'false', 'yes', 'no']

tasks/install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
service:
2121
name: mysql_exporter
2222
state: restarted
23+
enabled: true
2324
changed_when: false
2425

2526
- name: wait for mysql exporter to become ready
@@ -29,4 +30,4 @@
2930
state: started
3031
delay: 5
3132
connect_timeout: 15
32-
timeout: 300
33+
timeout: 300

0 commit comments

Comments
 (0)