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 570eaab commit b665b7b
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 "log_analytics" {
source = "../terraform-log-analytics"
source = "registry.terraform.io/T-Systems-MMS/log-analytics/azurerm"
log_analytics_workspace = {
service-monitor-loganalytics-workspace = {
location = "westeurope"
Expand Down

0 comments on commit b665b7b

Please sign in to comment.