Skip to content

Commit 8f04e99

Browse files
Format cy.yml
1 parent f163855 commit 8f04e99

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@ name: CI
44
# Triggers that start this workflow
55
on:
66
push:
7-
branches: [ main ] # Run when code is pushed to main branch
7+
branches: [main] # Run when code is pushed to main branch
88
pull_request:
9-
branches: [ main ] # Run when pull request targets main branch
9+
branches: [main] # Run when pull request targets main branch
1010

1111
# Jobs are independent tasks that run in parallel (or sequentially with dependencies)
1212
jobs:
1313
lint:
1414
# GitHub-hosted runner - uses Ubuntu latest LTS version
1515
# This is the host machine, not the target deployment OS
1616
runs-on: ubuntu-latest
17-
17+
1818
# Sequential steps executed in this job
1919
steps:
2020
# Checkout repository code into the runner
2121
# Makes your code available to subsequent steps
2222
- uses: actions/checkout@v4
23-
23+
2424
# Install Python on the runner
2525
# Required for Ansible and related tools
2626
- name: Set up Python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: '3.11' # Python version to install
30-
29+
python-version: "3.11" # Python version to install
30+
3131
# Install project dependencies
3232
- name: Install dependencies
3333
run: |
3434
# Install Python packages from requirements.txt
3535
# Includes: ansible, ansible-lint, boto3
3636
pip install -r requirements.txt
37-
37+
3838
# Install Ansible Galaxy collections from requirements.yml
3939
# Includes: amazon.aws, community.general, ansible.posix
4040
ansible-galaxy collection install -r requirements.yml
41-
41+
4242
# Run ansible-lint to check for best practices and common errors
4343
- name: Lint Ansible playbooks
4444
run: |
4545
# Check playbooks/site.yml for style and best practices
4646
# || true prevents build failure on warnings (optional warnings)
4747
ansible-lint playbooks/site.yml || true
48-
48+
4949
# Validate YAML syntax of the playbook
5050
- name: Syntax check
5151
run: |
5252
# --syntax-check: Parse YAML without executing tasks
5353
# -i inventory/inventory.ini.example: Use example inventory (no real hosts)
5454
# Fails the build if syntax errors are found
55-
ansible-playbook playbooks/site.yml --syntax-check -i inventory/inventory.ini.example
55+
ansible-playbook playbooks/site.yml --syntax-check -i inventory/inventory.ini.example

0 commit comments

Comments
 (0)