@@ -5,6 +5,15 @@ includes:
5
5
dist : ./DistTasks.yml
6
6
7
7
vars :
8
+ # Path of the project's primary Go module:
9
+ DEFAULT_GO_MODULE_PATH : ./
10
+ DEFAULT_GO_PACKAGES :
11
+ sh : |
12
+ echo $(
13
+ cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} &&
14
+ go list ./... | tr '\n' ' ' ||
15
+ echo '"ERROR: Unable to discover Go packages"'
16
+ )
8
17
# Path of the primary npm-managed project:
9
18
DEFAULT_NPM_PROJECT_PATH : ./
10
19
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
28
37
-X {{.CONFIGURATION_PACKAGE}}.commit={{.COMMIT}}
29
38
-X {{.CONFIGURATION_PACKAGE}}.date={{.TIMESTAMP}}
30
39
'
31
- # Path of the project's primary Go module:
32
- DEFAULT_GO_MODULE_PATH : ./
33
- DEFAULT_GO_PACKAGES :
34
- sh : |
35
- echo $(
36
- cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} &&
37
- go list ./... | tr '\n' ' ' ||
38
- echo '"ERROR: Unable to discover Go packages"'
39
- )
40
40
41
41
tasks :
42
42
build :
@@ -77,30 +77,6 @@ tasks:
77
77
# This is an "umbrella" task used to call any documentation generation processes the project has.
78
78
# It can be left empty if there are none.
79
79
80
- # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
81
- general:check-formatting :
82
- desc : Check basic formatting style of all files
83
- cmds :
84
- - |
85
- if ! which ec &>/dev/null; then
86
- echo "ec not found or not in PATH."
87
- echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
88
- exit 1
89
- fi
90
- - ec
91
-
92
- # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml
93
- general:format-prettier :
94
- desc : Format all supported files with Prettier
95
- deps :
96
- - task : npm:install-deps
97
- cmds :
98
- - |
99
- npx \
100
- prettier \
101
- --write \
102
- .
103
-
104
80
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
105
81
general:cache-dep-licenses :
106
82
desc : Cache dependency license metadata
@@ -129,6 +105,30 @@ tasks:
129
105
cmds :
130
106
- licensed status
131
107
108
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
109
+ general:check-formatting :
110
+ desc : Check basic formatting style of all files
111
+ cmds :
112
+ - |
113
+ if ! which ec &>/dev/null; then
114
+ echo "ec not found or not in PATH."
115
+ echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
116
+ exit 1
117
+ fi
118
+ - ec
119
+
120
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml
121
+ general:format-prettier :
122
+ desc : Format all supported files with Prettier
123
+ deps :
124
+ - task : npm:install-deps
125
+ cmds :
126
+ - |
127
+ npx \
128
+ prettier \
129
+ --write \
130
+ .
131
+
132
132
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
133
133
general:check-spelling :
134
134
desc : Check for commonly misspelled words
0 commit comments