Skip to content

Commit

Permalink
Merge pull request #1 from brightbock/gha
Browse files Browse the repository at this point in the history
GHA
  • Loading branch information
JamesJJ authored Mar 18, 2021
2 parents 1be1857 + 4608ccf commit b97070f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Terraform

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

job1:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Format
run: terraform fmt -diff -check -recursive

job2:
name: Functionality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Init
run: terraform init -backend=false

- name: Validate (Does not check variable values and variable validation logic)
run: terraform validate
3 changes: 3 additions & 0 deletions providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
provider "aws" {
region = var.aws_region
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ variable "dmarc_txt" {
default = ["v=DMARC1; p=reject; sp=reject;"]
}

variable "aws_region" {
type = string
default = "us-east-1"
}

0 comments on commit b97070f

Please sign in to comment.