-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66e694a
commit 085e0bf
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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
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' |