Skip to content

Commit

Permalink
Merge pull request #3 from oaknational/chore/ENG-966-add-ci
Browse files Browse the repository at this point in the history
chore(ci): add terraform checks job
  • Loading branch information
tweakster authored Sep 25, 2024
2 parents de23689 + 848dcd3 commit c9872ec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/terraform_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Terraform checks and linting

on: [push]

jobs:
terraform-lint-format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run Terraform Action from oak-terraform-actions
uses: oaknational/oak-terraform-actions/actions/terraform-checks@main
with:
terraform_base_dir: modules
1 change: 1 addition & 0 deletions .terraform-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.4
10 changes: 10 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugin "terraform" {
enabled = true
preset = "all"
}

plugin "google" {
enabled = true
version = "0.30.0"
source = "github.com/terraform-linters/tflint-ruleset-google"
}

0 comments on commit c9872ec

Please sign in to comment.