Skip to content

Merge pull request #4 from Ebury/add/SECENG-1371_gha_jira_ref #2

Merge pull request #4 from Ebury/add/SECENG-1371_gha_jira_ref

Merge pull request #4 from Ebury/add/SECENG-1371_gha_jira_ref #2

Workflow file for this run

---
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: "lint & syntax check"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache PIP
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install role requirements
uses: BSFishy/pip-action@v1
with:
requirements: "requirements.txt"
- name: Create ansible.cfg
run: "printf '[defaults]\nroles_path=./tests/requirements/:../' > ansible.cfg"
- name: ansible-lint
uses: ansible-community/ansible-lint-action@v6.2.1
- name: ansible-playbook syntax check
uses: dawidd6/action-ansible-playbook@v2.5.0
with:
playbook: tests/test.yml
directory: "."
requirements: tests/requirements.yml
options: --syntax-check -i tests/inventory