Update Terraform aws to v5.82.2 #393
This file contains 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: Lint Provisioning Scripts | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint-terraform: | |
env: | |
TERRAFORM_VERSION: "0.14.3" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: ${{ env.TERRAFORM_VERSION }} | |
- name: Initialize Terraform | |
run: terraform init | |
- name: Validate terraform files | |
run: terraform validate | |
- name: Ensure Terraform files follow the official style guides | |
run: terraform fmt -check -recursive | |
lint-ansible-playbooks: | |
env: | |
ANSIBLE_VERSION: "5.2.0" | |
PYTHON_VERSION: "3.10.1" | |
ANSIBLE_LINT_VERSION: "5.3.2" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Ansible & Ansible lint & dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible-lint==${{ env.ANSIBLE_LINT_VERSION }} ansible==${{ env.ANSIBLE_VERSION }} | |
- name: Install external collections | |
run: ansible-galaxy collection install -r requirements.yml | |
- name: Install external roles | |
run: ansible-galaxy role install -r requirements.yml | |
- name: Lint Ansible Playbooks | |
run: | | |
ansible-playbook minecraft-server-configuration.yml --syntax-check | |
ansible-lint minecraft-server-configuration.yml --exclude=${HOME}/.ansible/roles/ |