2020-06-15 13:06:38 +01:00
|
|
|
name: CI
|
2019-12-08 12:07:57 +00:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-06-15 13:06:38 +01:00
|
|
|
ansible:
|
2019-12-08 12:07:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python 3.7
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.7
|
2020-04-23 20:54:54 +01:00
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
|
2019-12-08 12:07:57 +00:00
|
|
|
- name: Install dependencies
|
2020-02-22 20:41:04 +00:00
|
|
|
run: ./scripts/ansible/setup.sh
|
2019-12-08 12:07:57 +00:00
|
|
|
- name: Run linters
|
2020-02-22 20:41:04 +00:00
|
|
|
run: ./scripts/ansible/lint.sh
|
2020-06-15 13:06:38 +01:00
|
|
|
|
|
|
|
terraform:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install terraform
|
|
|
|
uses: marocchino/setup-terraform@v1
|
|
|
|
with:
|
|
|
|
version: "0.12.20"
|
|
|
|
- name: Initialize Terraform
|
|
|
|
run: ./scripts/terraform/terraform.sh init -backend=false
|
|
|
|
- name: Lint
|
|
|
|
run: ./scripts/terraform/lint.sh
|