-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (33 loc) · 873 Bytes
/
Copy pathchatops.yaml
File metadata and controls
38 lines (33 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
permissions:
contents: read
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- 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: |
cd chatops_deployment
pip install -r ansible/requirements.txt
ansible-galaxy install -r ansible/requirements.yml
ansible-lint --project-dir ansible