Skip to content

Commit

Permalink
First workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrod-lowe committed Aug 3, 2024
1 parent a9d45e9 commit 5db6869
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Terraform Validation

on:
pull_request:
paths:
- terraform/environment/github/**
push:
branches:
- main

jobs:
terraform:
name: Validate Terraform
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: action/checkout@v4
- name: Validate Terraform
uses: dflook/terraform-validate@v1
with:
path: terraform/environment/github

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Wildsea companion app
To set up a github repository:

* Log into Codacy, and connect the repo
* Configure the rule to maximum
* Create a branch restriction rule called "main":
* Enforcement: Active
* Target Branches: Include default branch
* Tick Restrict creations
* Tick Restrict updates
* Tick Restrict deletions
* Tick Require linear history
* Tick Require a pull request before merging
Expand Down
1 change: 1 addition & 0 deletions terraform/environment/github/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "null_resource" "test" {}

0 comments on commit 5db6869

Please sign in to comment.