run the action on our docker image, use ansible lint for linting #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
'on': | |
pull_request: | |
push: | |
defaults: | |
run: | |
working-directory: 'nikosch86.pbs' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ghcr.io/nikosch86/docker-alpine-ansible:v0.0.3 | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'nikosch86.pbs' | |
- name: Install test dependencies. | |
run: pip3 install yamllint | |
- name: yamllint files | |
run: | | |
yamllint . | |
- name: Ansible lint | |
run: | | |
ansible-lint . |