Skip to content

Commit

Permalink
add CI loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kpeder committed Mar 8, 2024
1 parent 742d62e commit e8fac66
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Terraform Build and Test'

on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]

jobs:

test:
runs-on: ubuntu-22.04
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.5.7'
terraform_wrapper: false

- name: Check documentation
uses: terraform-docs/[email protected]
with:
fail-on-diff: true
output-method: print
working-dir: .,fixtures/example1

- name: Test Project
run: make test

0 comments on commit e8fac66

Please sign in to comment.