Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes committed Feb 17, 2022
1 parent 55e60f3 commit 1e9deba
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/terraform-lint.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Terraform

on: [push, pull_request]

jobs:
terraform-lint:
runs-on: ubuntu-latest

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v2
- uses: hashicorp/setup-terraform@v1

- name: fmt
run: terraform fmt -recursive -check
continue-on-error: true

- name: init
run: terraform init

- name: validate
run: terraform validate -no-color
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "network" {
source = "../modules/azure/terraform-network"
source = "registry.terraform.io/T-Systems-MMS/network/azurerm"
virtual_network = {
env = {
name = "service-env-vn"
Expand Down

0 comments on commit 1e9deba

Please sign in to comment.