Fixing ci pr devel 1.x #413
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: Linting | |
# Run this workflow every time a new commit pushed to your repository | |
on: pull_request | |
jobs: | |
run-linting: | |
if: ${{ always() }} | |
name: Linting | |
runs-on: ubuntu-22.04 # at time of writing ubuntu-latest has broken ansible | |
steps: | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
# Linter checks. | |
- name: Install linters. | |
run: | | |
sudo apt-get update | |
sudo apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew" | |
sudo apt-get install -y ansible-lint yamllint shellcheck | |
- name: Run ansible-lint. | |
run: find ./roles -name "*.yml" | xargs ansible-lint | |
- name: Run yamllint. | |
run: yamllint ./roles | |
- name: Run shellcheck. | |
run: cd scripts && shellcheck *.sh |