Skip to content

Commit

Permalink
Add workflow to perform linting on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdclarke committed Aug 13, 2024
1 parent d85adfe commit 60c1caa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Check ansible
on:
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install ansible-lint
run: pip3 install ansible-lint==24.7.*
- name: Install ansible docker collection
run: ansible-galaxy collection install 'community.docker<3.13'
- name: Run ansible-lint
run: ansible-lint .

0 comments on commit 60c1caa

Please sign in to comment.