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 5e83e12 commit d3ee3a9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 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
6 changes: 3 additions & 3 deletions examples/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module "azuredevops_repositories" {
source = "../modules/azure/terraform-azuredevops_repositories"
module "repositories" {
source = "registry.terraform.io/T-Systems-MMS/pipelines/repositories"
git_repository = {
azuredevops = {
project_id = module.azuredevops_project.project["project_name"].id
project_id = module.project.project["project_name"].id
}
}
}

0 comments on commit d3ee3a9

Please sign in to comment.