Unify CI config into 1 file

This commit is contained in:
Jake Howard 2020-06-15 13:06:38 +01:00
parent 624d1b5425
commit 4d75130afd
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 16 additions and 21 deletions

View File

@ -1,9 +1,9 @@
name: Ansible
name: CI
on: [push]
jobs:
build:
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@ -19,3 +19,16 @@ jobs:
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

View File

@ -1,17 +0,0 @@
name: Terraform
on: [push]
jobs:
build:
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

View File

@ -1,7 +1,6 @@
# Infrastructure
![Ansible Status](https://github.com/realorangeone/infrastructure/workflows/Ansible/badge.svg)
![Terraform Status](https://github.com/realorangeone/infrastructure/workflows/Terraform/badge.svg)
![CI Status](https://github.com/realorangeone/infrastructure/workflows/CI/badge.svg)
## Requirements