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 50b52d6 + 2e35312 commit e7f8998
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
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: 400
level: warning
truthy:
allowed-values: ['true', 'false', 'yes', 'no']
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

- name: Install the mysql packages.
apt:
name: [ "python-selinux", "mysql-server", "python-mysqldb" ]
name: ["python-selinux", "mysql-server", "python-mysqldb"]
state: installed
update_cache: true

0 comments on commit e7f8998

Please sign in to comment.