Unify CI config into 1 file
This commit is contained in:
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
ansible:
|
||||
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
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||
- name: Install dependencies
|
||||
run: ./scripts/ansible/setup.sh
|
||||
- name: Run linters
|
||||
run: ./scripts/ansible/lint.sh
|
||||
|
||||
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
|
Reference in New Issue
Block a user