Skip to content

Commit 483b5d2

Browse files
committed
Enable linter for all branches and pull requests
1 parent 72dc6ad commit 483b5d2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/linter.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Linters and formatters
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Terraform linter
19+
run: |
20+
find . -type f -name "*.tf" ! -path "*/.terraform/*" -exec terraform fmt -check {} \;

0 commit comments

Comments
 (0)