infrastructure/.gitea/workflows/ci.yml

35 lines
855 B
YAML
Raw Normal View History

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
uses: hashicorp/setup-terraform@v2
- 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
- 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