Skip to content

Commit 48d06a9

Browse files
update github action. inline with blueprint
1 parent 7170780 commit 48d06a9

File tree

5 files changed

+58
-101
lines changed

5 files changed

+58
-101
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
end_of_line = lf
33
charset = utf-8
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
insert_final_newline = true
77
trim_trailing_whitespace = true
88

.github/workflows/lint.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/linter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: linter
3+
# This workflow is triggered on pushes to the repository.
4+
on:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
terraform-validate:
14+
name: code format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
# https://github.com/hashicorp/setup-terraform
19+
- uses: hashicorp/setup-terraform@v2
20+
21+
- name: Cache terraform folder
22+
uses: actions/cache@v2
23+
with:
24+
path: ./.terraform
25+
key: terraform
26+
27+
- name: terraform fmt
28+
run: terraform fmt -check -recursive -diff
29+
continue-on-error: true
30+
31+
- name: terraform init
32+
run: terraform init
33+
34+
- name: terraform validate
35+
run: terraform validate
36+
37+
tflint:
38+
name: "tflint"
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: actions/cache@v2
43+
name: Cache tflint plugin dir
44+
with:
45+
path: ~/.tflint.d/plugins
46+
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
47+
- uses: terraform-linters/setup-tflint@v1
48+
name: setup tflint
49+
- name: init tflint
50+
run: tflint --init --config .tflint.hcl
51+
- name: run tflint
52+
run: tflint -f compact --config .tflint.hcl

.github/workflows/validator.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

examples/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Examples
22

3-
These serve a few purposes:
3+
Please note - the examples provided serve two primary means:
44

5-
1. Shows developers how to use the module in a straightforward way as integrated with other terraform community supported modules.
6-
2. Serves as the test infrastructure for CI on the project.
7-
3. Provides a simple way to play with the Kubernetes cluster you create.
5+
1. Show users working examples of the various ways in which the module can be configured and features supported
6+
1. A means of testing/validating module changes
7+
8+
Please do not mistake the examples provided as "best practices". It is up to users to consult the AWS service documentation for best practices, usage recommendations, etc.

0 commit comments

Comments
 (0)