Skip to content

Commit

Permalink
Merge pull request #3 from nikosch86/cicd
Browse files Browse the repository at this point in the history
Use ansible lint and yamllint
  • Loading branch information
nikosch86 authored May 7, 2024
2 parents e9c9175 + ec92576 commit b01297c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/nikosch86/docker-alpine-ansible:v0.0.3
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
with:
path: 'nikosch86.pbs'

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install yamllint
run: pipx install yamllint

- name: Lint code.
- name: yamllint files
run: |
yamllint .
- name: Ansible lint
run: |
ansible-lint .

0 comments on commit b01297c

Please sign in to comment.