Merge pull request #238 from stfc/ssh_key_volume #106
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "chatops_deployment/**" | |
| - ".github/workflows/chatops.yaml" | |
| pull_request: | |
| paths: | |
| - "chatops_deployment/**" | |
| - ".github/workflows/chatops.yaml" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Check Terraform | |
| run: | | |
| sudo snap install terraform --classic | |
| cd chatops_deployment/terraform | |
| touch bastion-key.pub | |
| terraform init | |
| terraform validate | |
| cd ../.. | |
| - name: Check Ansible | |
| run: | | |
| pip install ansible | |
| pip install ansible-lint | |
| cd chatops_deployment | |
| ansible-lint --project-dir ansible | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@master | |
| with: | |
| scandir: './chatops_deployment' |