Commit d01e5ad 1 parent 0ee82c4 commit d01e5ad Copy full SHA for d01e5ad
File tree 3 files changed +27
-18
lines changed
3 files changed +27
-18
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,22 @@ tasks:
14
14
brew install {{.APP}} --quiet && \
15
15
echo "✅ {{.APP}} installed successfully" || \
16
16
echo "❌ Failed to install {{.APP}}"
17
-
17
+
18
+ tools:brew:optional :
19
+ desc : brew install
20
+ silent : true
21
+ preconditions :
22
+ - sh : command -v brew
23
+ msg : " brew is not installed. Please install brew. See CONTRIBUTING.md for the required tools"
24
+ cmds :
25
+ # # Brew apps
26
+ - cmd : |
27
+ if [ {{.INSTALL_REQUIRED}} = true ]; then \
28
+ brew install {{.APP}} --quiet && \
29
+ echo "✅ {{.APP}} installed successfully" || \
30
+ echo "❌ Failed to install {{.APP}}"
31
+ fi
32
+
18
33
tools:brew:tap :
19
34
desc : brew tap
20
35
silent : true
Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ tasks:
37
37
APP : ' {{.ITEM}}'
38
38
- task : install:module
39
39
40
- # install:module:
41
- # desc: Install terraform module
42
- # cmds:
43
- # - if: IS_MODULE == "true"
44
- # then:
45
- # - terraform init
46
- # else:
47
- # - echo "This is not a terraform module"
40
+ install:module :
41
+ desc : Install terraform module
42
+ internal : true
43
+ cmds :
44
+ - for : [
45
+ tflint,
46
+ ]
47
+ task : internal:tools:brew:optional
48
+ vars :
49
+ APP : ' {{.ITEM}}'
50
+ INSTALL_REQUIRED : ' {{.IS_MODULE}}'
48
51
49
52
# * Lint
50
53
lint :
Original file line number Diff line number Diff line change 4
4
---
5
5
version: "3"
6
6
7
- vars:
8
- PROJECT_NAME: cloudavenue
9
-
10
7
# * Import
11
8
includes:
12
9
license: ".taskfiles/license.yml"
34
31
cmds:
35
32
- task: license:lint
36
33
- task: tf:lint
37
-
38
- generate:
39
- desc: Generate code and docs
40
- cmds:
41
- - task: go:run
42
- - task: license:run
You can’t perform that action at this time.
0 commit comments