forked from confluentinc/cp-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 858 Bytes
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
name: Linting
on: [push, pull_request]
jobs:
ansible-lint:
name: Ansible Lint
runs-on: ubuntu-latest
container: cytopia/ansible-lint:5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v2
- name: Ansible Lint code
run: ansible-lint -c .ansible-lint -qq --force-color *.yml
yamllint:
name: Yaml Lint
runs-on: ubuntu-latest
container: cytopia/yamllint:latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v2
- name: Yamllint code
run: yamllint -c .yamllint -f colored .