-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoon.yml
More file actions
107 lines (96 loc) · 2.13 KB
/
Copy pathmoon.yml
File metadata and controls
107 lines (96 loc) · 2.13 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: 'go'
layer: 'application'
stack: 'backend'
project:
title: 'release-cli'
description: 'Exercise the Meigma release pipeline.'
owner: 'meigma'
maintainers:
- 'meigma'
toolchains:
default: 'system'
fileGroups:
goSources:
- 'cmd/**/*.go'
- 'internal/**/*.go'
- 'go.mod'
- 'go.sum'
- 'mise.toml'
- 'mise.lock'
lintConfig:
- '.golangci.yml'
- 'mise.toml'
- 'mise.lock'
ciConfig:
- 'moon.yml'
- '.github/workflows/**/*.yml'
mockeryConfig:
- '.mockery.yml'
- 'mise.toml'
- 'mise.lock'
workspace:
inheritedTasks:
include: []
tasks:
format:
command: 'mise exec -- golangci-lint fmt --config .golangci.yml --diff'
inputs:
- '@group(goSources)'
- '@group(lintConfig)'
- '@group(ciConfig)'
options:
cache: false
lint:
command: 'mise exec -- golangci-lint run --config .golangci.yml ./... --show-stats=false'
inputs:
- '@group(goSources)'
- '@group(lintConfig)'
- '@group(ciConfig)'
options:
cache: false
build:
command: 'mise exec -- go build -o bin/release-cli ./cmd/release-cli'
inputs:
- '@group(goSources)'
- '@group(ciConfig)'
outputs:
- 'bin/release-cli'
protocol:
command: 'mise exec -- bash scripts/check-protocol-stamp.sh'
inputs:
- 'scripts/check-protocol-stamp.sh'
- '.github/actions/setup-release-cli/action.yml'
- '@group(goSources)'
options:
cache: false
test:
command: 'mise exec -- go test ./...'
inputs:
- '@group(goSources)'
- '@group(ciConfig)'
options:
cache: false
mocks:
command: 'mise exec -- bash scripts/check-mocks.sh'
inputs:
- 'scripts/check-mocks.sh'
- '@group(goSources)'
- '@group(mockeryConfig)'
- '@group(ciConfig)'
options:
cache: false
check:
deps:
- 'root:format'
- 'root:lint'
- 'root:build'
- 'root:test'
- 'root:protocol'
- 'root:mocks'
inputs:
- '@group(goSources)'
- '@group(lintConfig)'
- '@group(ciConfig)'
options:
cache: false
runInCI: true