Revise code organization section in README #12
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: "DBRE Postgres - CI/CD Validate" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| validate-infrastructure: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Validation Docker Compose | |
| run: docker compose -f docker-compose/docker-compose.yml config -q | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: 1.5.0 | |
| - name: Terraform Format & Validate | |
| run: | | |
| cd terraform | |
| terraform fmt | |
| terraform init -backend=false | |
| terraform validate | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Ansible Lint and Collections | |
| run: | | |
| pip install ansible-lint | |
| ansible-galaxy collection install ansible.posix | |
| ansible-galaxy collection install community.general | |
| - name: Ansible Playbook Check | |
| run: ansible-lint ansible/playbooks/postgresql_hardening.yml |