diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f41f65..dba5bb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,27 +10,6 @@ env: ANSIBLE_FORCE_COLOR: '1' jobs: - lint: - strategy: - matrix: - directory: - - roles - - playbooks - - group_vars - - host_vars - name: Test Ansible Playbooks - runs-on: ubuntu-latest - steps: - - name: Checkout the codebase - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.8.9 - - name: Install test dependencies. - - name: Install requirements - run: make deps - - name: Test Directory - run: ansible-lint ${{ matrix.directory }} tests: name: Test Ansible Playbooks runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d8f2e04 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +--- +name: CI +on: + workflow_dispatch: + push: + + +jobs: + lint: + strategy: + matrix: + directory: + - roles + - playbooks + - group_vars + - host_vars + name: Test Ansible Playbooks + runs-on: ubuntu-latest + steps: + - name: Checkout the codebase + uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.8.9 + - name: Install test dependencies. + - name: Install requirements + run: make deps + - name: Test Directory + run: ansible-lint ${{ matrix.directory }} +