Skip to content

Commit 6cfb399

Browse files
authored
Merge pull request #5 from outerbounds/add-tf-validate
add terraform validate hook + github action to run precommit checks
2 parents 0462267 + e0b0eed commit 6cfb399

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Linter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
name: pre-commit
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: '1.16.1'
18+
- uses: pre-commit/[email protected]
19+
validate:
20+
runs-on: ubuntu-latest
21+
name: terraform validate
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v2
25+
26+
- name: terraform validate
27+
uses: dflook/terraform-validate@v1
28+
with:
29+
path: .

modules/ui/ecs_ui_backend.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ resource "aws_ecs_task_definition" "ui_backend" {
2525
}
2626
}
2727
command = [
28-
"/opt/latest/bin/python3",
29-
"-m",
28+
"/opt/latest/bin/python3",
29+
"-m",
3030
"services.ui_backend_service.ui_server"
3131
]
3232
}

0 commit comments

Comments
 (0)