infrastructure/.gitea/workflows/ci.yml
Renovate 3eaf23719b
All checks were successful
/ terraform (push) Successful in 2m1s
/ ansible (push) Successful in 5m57s
Update actions/checkout action to v4
2023-11-05 22:02:10 +00:00

34 lines
855 B
YAML

on:
push:
jobs:
terraform:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
- 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