2021-02-21 19:50:07 +00:00
|
|
|
---
|
2021-02-10 16:48:51 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-02-10 23:52:17 +00:00
|
|
|
- name: Check out the codebase
|
2021-02-10 16:48:51 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-02-10 23:52:17 +00:00
|
|
|
- name: Set up Python 3
|
2021-02-10 16:48:51 +00:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
2021-02-10 23:52:17 +00:00
|
|
|
- name: Install test dependencies
|
|
|
|
run: pip3 install yamllint ansible-lint==4.3.7
|
2021-02-10 16:48:51 +00:00
|
|
|
|
2021-02-21 19:50:07 +00:00
|
|
|
- name: Linting
|
|
|
|
run: |
|
|
|
|
ansible-lint ./nas.yml -x 106,208
|
|
|
|
yamllint .
|