2023-04-28 20:04:21 +01:00
|
|
|
on:
|
|
|
|
push:
|
2023-03-29 20:34:53 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
terraform:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-05 22:02:10 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-29 20:34:53 +01:00
|
|
|
- name: Setup Terraform
|
2023-11-05 22:02:12 +00:00
|
|
|
uses: hashicorp/setup-terraform@v3
|
2023-06-18 17:15:29 +01:00
|
|
|
- uses: taiki-e/install-action@just
|
2023-03-29 20:34:53 +01:00
|
|
|
- name: Init
|
2023-06-18 17:13:31 +01:00
|
|
|
run: just terraform init -backend=false
|
2023-03-29 20:34:53 +01:00
|
|
|
- name: Lint
|
2023-06-18 17:13:31 +01:00
|
|
|
run: just terraform-lint
|
2023-03-29 20:34:53 +01:00
|
|
|
|
|
|
|
ansible:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-05 22:02:10 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-29 20:34:53 +01:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2023-06-18 17:15:29 +01:00
|
|
|
- uses: taiki-e/install-action@just
|
2023-03-29 20:34:53 +01:00
|
|
|
|
|
|
|
# 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
|
2023-06-18 17:13:31 +01:00
|
|
|
run: just ansible-setup
|
2023-03-29 20:34:53 +01:00
|
|
|
- name: Lint
|
2023-06-18 17:13:31 +01:00
|
|
|
run: just ansible-lint
|