Working on Drupal 10 test deploy. #403
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-latest | |
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: | | |
apt-get update | |
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 |