Skip to content

Merge pull request #2 from thoughtbot/elasticache-memory-review #12

Merge pull request #2 from thoughtbot/elasticache-memory-review

Merge pull request #2 from thoughtbot/elasticache-memory-review #12

name: Terraform
on:
- push
defaults:
run:
shell: bash
working-directory: modules/rds-review
jobs:
checkfmt:
name: Format
runs-on: ubuntu-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Check format
run: make all/checkfmt
validate:
name: Validate
runs-on: ubuntu-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Validate
run: make all/validate
docs:
name: Docs
runs-on: ubuntu-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docs
uses: terraform-docs/gh-actions@b70f26cbb942d355a1ec99d3aa5707a35e838b81
with:
git-push: true
output-file: README.md
output-method: inject
working-dir: modules/rds-review
lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v1
with:
tflint_version: v0.29.0
- name: Lint
run: make all/lint