Skip to content

Commit

Permalink
Merge pull request #1 from clouddrove/PR-1
Browse files Browse the repository at this point in the history
lint apply
  • Loading branch information
Sohan Yadav authored May 15, 2020
2 parents 26cc3d2 + d66f8f1 commit 7a13847
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Lint
'on':
pull_request:
push:
branches:
- master

jobs:

test:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Check out the codebase.
uses: actions/checkout@v2

- name: Set up Python 3.7.
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install yamllint ansible-lint

- name: Run yamllint.
run: yamllint .

- name: Run ansible-lint.
run: ansible-lint

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'Clouddrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
if: always()
9 changes: 9 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: default

rules:
line-length:
max: 120
level: warning
truthy:
allowed-values: ['true', 'false', 'yes', 'no']
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ php_exporter_server_port: 9253
php_exporter_server_bind: 0.0.0.0

php_exporter_version: 1.0.0
php_server_uri: "tcp://{{ PrivateIp }}:9000/php-status"
php_server_uri: "tcp://{{ PrivateIp }}:9000/php-status"
3 changes: 2 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
service:
name: php_exporter
state: restarted
enabled: true
changed_when: false

- name: wait for php exporter to become ready
Expand All @@ -29,4 +30,4 @@
state: started
delay: 5
connect_timeout: 15
timeout: 300
timeout: 300

0 comments on commit 7a13847

Please sign in to comment.