infrastructure/.gitea/workflows/ci.yml
Jake Howard aeeb097491
All checks were successful
/ terraform (push) Successful in 48s
/ ansible (push) Successful in 1m49s
Fix README documentation for terraform secrets
2023-06-18 17:21:18 +01:00

34 lines
855 B
YAML

on:
push:
jobs:
terraform:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
- uses: taiki-e/install-action@just
- name: Init
run: just terraform init -backend=false
- name: Lint
run: just terraform-lint
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- uses: taiki-e/install-action@just
# HACK: https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir
- name: Fix permissions
run: chmod 0755 ansible/
- name: Set up
run: just ansible-setup
- name: Lint
run: just ansible-lint