Skip to content

Commit

Permalink
Adds workflows v2
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbdiniz authored Aug 18, 2020
1 parent 80def76 commit d44273d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Generate terraform docs

on:
push:
branches:
- master

jobs:
docs:
runs-on: ubuntu-latest
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Lint

on: [push]

jobs:
tflint:
name: TFLint
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -19,16 +20,6 @@ jobs:
- uses: actions/checkout@master
- run: terraform fmt --recursive -check=true

docs:
name: Docs
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Install Deps
run: brew update && brew install pre-commit terraform-docs terraform
- name: Check Docs
run: pre-commit run --show-diff-on-failure --all-files terraform_docs

validate:
name: Validate
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,7 +51,7 @@ jobs:
name: Minimum version check
runs-on: ubuntu-latest
container:
image: hashicorp/terraform:0.12.20
image: hashicorp/terraform:0.12.0
steps:
- uses: actions/checkout@master
- name: Validate Code
Expand Down
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = ">= 0.12.20"
}
required_version = ">= 0.12.0"
}

0 comments on commit d44273d

Please sign in to comment.