-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoon.yml
More file actions
100 lines (89 loc) · 1.91 KB
/
moon.yml
File metadata and controls
100 lines (89 loc) · 1.91 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
language: 'go'
layer: 'library'
stack: 'backend'
tags:
- 'auth'
- 'library'
project:
title: 'authkit'
description: 'Go authentication and authorization library for Web API services.'
owner: 'meigma'
maintainers:
- 'meigma'
toolchains:
default: 'go'
workspace:
inheritedTasks:
include: []
fileGroups:
go:
- '**/*.go'
- 'go.mod'
- '**/*.sql'
lintConfig:
- '.golangci.yml'
- '.prototools'
- '.moon/proto/golangci-lint.toml'
releaseConfig:
- '.github/workflows/release-please.yml'
- '.github/repository-settings.toml'
- 'release-please-config.json'
- '.release-please-manifest.json'
tasks:
generate:
command: 'go tool mockery'
toolchains: ['go']
inputs:
- '@group(go)'
- '.mockery.yaml'
options:
cache: false
build:
command: 'go build ./...'
toolchains: ['go']
inputs:
- '@group(go)'
options:
cache: false
format:
command: 'proto run golangci-lint -- fmt --config .golangci.yml --diff'
toolchains: ['go']
inputs:
- '@group(go)'
- '@group(lintConfig)'
options:
cache: false
lint:
command: 'proto run golangci-lint -- run --config .golangci.yml ./... --show-stats=false'
toolchains: ['go']
inputs:
- '@group(go)'
- '@group(lintConfig)'
options:
cache: false
test:
command: 'go test ./...'
toolchains: ['go']
inputs:
- '@group(go)'
options:
cache: false
integration:
command: 'go test -count 1 -tags integration ./store/postgres ./testkit/internal/store/postgres ./testkit/internal/authflow'
toolchains: ['go']
inputs:
- '@group(go)'
options:
cache: false
check:
deps:
- 'root:format'
- 'root:lint'
- 'root:build'
- 'root:test'
- 'root:integration'
inputs:
- '@group(releaseConfig)'
options:
cache: false
runInCI: true