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 fff22f4 commit f61bf29
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 "monitor" {
source = "../modules/azure/terraform-monitor"
source = "registry.terraform.io/T-Systems-MMS/monitor/azurerm"
monitor_diagnostic_setting = {
virtual_network.name = {
target_resource_id = virtual_network.id
Expand Down

0 comments on commit f61bf29

Please sign in to comment.