Skip to content

Commit

Permalink
add ansible-lint to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanspw committed May 30, 2024
1 parent 66e694a commit 085e0bf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .github/workflows/ansible-lint.yml
name: ansible-lint
on:
pull_request:
branches: ["master"]
push:
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
container: almalinux:9
steps:
- uses: actions/checkout@v4
- name: Install EPEL
run: dnf -y install epel-release
- name: Install dnf dependencies
run: dnf -y install ansible-core wget
- name: Install ansible-galaxy dependencies
run: ansible-galaxy install -r requirements.yml
- name: Run ansible-lint
uses: ansible/[email protected] # or version tag instead of 'main'

0 comments on commit 085e0bf

Please sign in to comment.