Skip to content

Commit

Permalink
Merge pull request #4 from clouddrove/PR-1
Browse files Browse the repository at this point in the history
lint apply
  • Loading branch information
Sohan Yadav committed May 26, 2020
2 parents c346cb8 + 378fc3b commit 180416c
Show file tree
Hide file tree
Showing 3 changed files with 57 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']
8 changes: 6 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

- name: install system packages and utils
apt:
pkg: [ 'ntp', 'openssl', 'git', 'telnet', 'figlet', 'git-core', 'htop', 'wget', 'python-pip',
'zip', 'vim', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
pkg: ['ntp', 'openssl', 'git', 'telnet', 'figlet', 'git-core', 'htop', 'wget', 'python-pip',
'vim', 'zip', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
state: "{{ state }}"
- name: Install AWS CLI
pip:
name: awscli
state: present
update_cache: true
cache_valid_time: 5400
changed_when: false
Expand Down

0 comments on commit 180416c

Please sign in to comment.