From 76db2c3dd35c0784a75e62fc5ec1242565506ca6 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:29:01 -0500 Subject: [PATCH] feat: added ansible-lint --- .../{infrstracture.yml => deployment.yml} | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) rename .github/workflows/{infrstracture.yml => deployment.yml} (74%) diff --git a/.github/workflows/infrstracture.yml b/.github/workflows/deployment.yml similarity index 74% rename from .github/workflows/infrstracture.yml rename to .github/workflows/deployment.yml index 6a05942..47142fd 100644 --- a/.github/workflows/infrstracture.yml +++ b/.github/workflows/deployment.yml @@ -1,16 +1,14 @@ -name: Build and Deploy Infrastructure +name: Build & Deploy on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main + branches: [main] jobs: - terraform: - name: Deploy Infrastructure + infrastructure: + name: Build Infrastructure runs-on: ubuntu-latest steps: @@ -53,4 +51,18 @@ jobs: - name: Terraform Apply if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/main') }} run: terraform apply -auto-approve tfplan - working-directory: ./terraform \ No newline at end of file + working-directory: ./terraform + + build: + name: Deploy Application + runs-on: ubuntu-24.04 + steps: + - name: Checkout to Repository + uses: actions/checkout@v4 + + - name: Lint Playbooks + uses: ansible/ansible-lint@main + with: + setup_python: true + working_directory: ./playbooks + requirements_file: ../requirements.txt \ No newline at end of file