-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
69 lines (63 loc) · 1.67 KB
/
Taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
version: 3
interval: 1000ms
output: prefixed
includes:
function:
taskfile: function/Taskfile.yaml
dir: function/
infra:
taskfile: infra/Taskfile.yaml
dir: infra/
tasks:
default:
cmds:
- task: function:build
- task: function:test
- task: infra:plan
build:
desc: Build the Cloud Function
aliases:
- b
summary: |-
Build the Cloud Function so it can be tested or packaged.
cmds:
- task: function:build
lint:
desc: Check linting via golangci-lint
summary: |-
Make sure that both the Cloud Function and the Infrastruce as Code is
correctly linted and formatted using standard tooling (including
golangci-lint, prettier, and yamllint).
aliases:
- l
cmds:
- task: prettier
- task: function:lint
- task: infra:lint
prettier:
desc: Run prettier over supported files to standadise formatting
cmds:
- cmd: |-
node_modules/.bin/prettier \
--check --write \
--config .prettierrc \
--no-editorconfig \
--cache \
--cache-location .prettier.cache \
--cache-strategy content \
"**/*.{json,yaml,md}" .prettierrc
clean:
desc: Clean up the temporary files and directories
aliases:
- c
summary: |-
Clean up any known temporary files and directories within the repository
that have been created either via the Cloud Function development and
deployment, or the Infrastruce as Code management with CDKTF.
run: once
cmds:
- task: function:clean
- task: infra:clean
- cmd: rm -rf .prettier
- cmd: rm -rf .task