Skip to content

Commit

Permalink
Merge pull request #8 from clouddrove/PR-1
Browse files Browse the repository at this point in the history
lint apply
  • Loading branch information
Sohan Yadav committed May 15, 2020
2 parents aa68845 + 8ff2ae3 commit 02ddc7e
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
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: 4 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# users list to create
users:
- username: anmol # username
use_sudo: true # flag to give user sudo access
- username: anmol #username
use_sudo: true #flag to give user sudo access

# users list to remove
rm_user_flag: false # flag to run remove user or not
rm_user_flag: false #flag to run remove user or not
# rm_users:
# - username: user # username
# - username: user #username

0 comments on commit 02ddc7e

Please sign in to comment.